mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
22 lines
249 B
D
22 lines
249 B
D
/* PERMUTE_ARGS: -preview=rvaluerefparam
|
|
*/
|
|
|
|
struct S
|
|
{
|
|
alias TT this;
|
|
long TT();
|
|
this(T)(int x) {} // works if `int` is `long`
|
|
|
|
this(S);
|
|
this(ref S);
|
|
|
|
~this();
|
|
}
|
|
|
|
S fun(ref S arg);
|
|
|
|
void test()
|
|
{
|
|
S st;
|
|
fun(st);
|
|
}
|