mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
20 lines
410 B
D
20 lines
410 B
D
/* REQUIRED_ARGS: -preview=dip1000
|
|
* TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test24015.d(19): Error: assigning scope variable `v` to non-scope parameter `...` calling `jer` is not allowed in a `@safe` function
|
|
---
|
|
*/
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=24105
|
|
|
|
@safe:
|
|
|
|
extern (C) void ben(int i, scope ...);
|
|
|
|
extern (C) void jer(int i, ...);
|
|
|
|
void bar(scope const char* v)
|
|
{
|
|
ben(3, v);
|
|
jer(3, v);
|
|
}
|