https://issues.dlang.org/show_bug.cgi?id=17718
Walter Bright changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=17718
--- Comment #2 from ZombineDev ---
(Where line 9 is the `alias f = ...` same as in the original example.)
--
https://issues.dlang.org/show_bug.cgi?id=17718
--- Comment #1 from ZombineDev ---
If I change the structure to:
struct S
{
int p;
int* leak() return scope { return }
}
I get:
scope_bug17718.d(9): Error: returning s.leak() escapes a reference to parameter
s,
https://issues.dlang.org/show_bug.cgi?id=17718
ZombineDev changed:
What|Removed |Added
CC|