mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
17 lines
303 B
D
17 lines
303 B
D
// https://issues.dlang.org/show_bug.cgi?id=23912
|
|
// REQUIRED_ARGS: -preview=dip1000
|
|
|
|
struct Test
|
|
{
|
|
string val;
|
|
|
|
this(return scope string val) scope @safe {}
|
|
~this() scope @safe {}
|
|
}
|
|
|
|
void giver(scope string input) @safe
|
|
{
|
|
accepts(Test(input));
|
|
}
|
|
|
|
void accepts(scope Test test) @safe {}
|