blob: 341eec36c3f6f9855226e0eaafa455f6b17b285a [file] [log] [blame]
/* REQUIRED_ARGS: -preview=dip1000
*/
/********************************************/
// https://issues.dlang.org/show_bug.cgi?id=20416
alias P = int*;
ref P foo(return ref P);
P bar()
{
P result;
return foo(result);
}
/********************************************/
// https://issues.dlang.org/show_bug.cgi?id=20416
struct S
{
string x;
ref S foo() return;
}
S bar2()
{
S result;
return result.foo();
}