mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
16 lines
336 B
D
16 lines
336 B
D
/* REQUIRED_ARGS: -preview=dip1000
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fix5212.d(14): Error: assigning scope variable `args_` to non-scope `this.args` is not allowed in a `@safe` function
|
|
---
|
|
*/
|
|
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=5212
|
|
|
|
class Foo {
|
|
int[] args;
|
|
@safe this(int[] args_...) {
|
|
args = args_;
|
|
}
|
|
}
|