Closed MartinNowak closed 7 years ago
/// module test; /// ref int foo(return ref int a) @safe { return a; } /// int* foo(return scope int* a) @safe { return a; } /// ref int* foo(scope return ref int* a) @safe { return a; } /// struct S { @safe: /// ref S foo() return { return this; } /// S foo() return scope { return this; } /// ref S foo() return scope { return this; } int* p; }
duplicate of #181