https://issues.dlang.org/show_bug.cgi?id=13116

--- Comment #2 from [email protected] ---
Attempting to do the same with returning a local variable produces a compile
error:

test.d(10): Error: escaping reference to local variable c

which is correct. So looks like 'this' was overlooked as a local variable
(albeit an implicit one) in the check for escaping references.

--

Reply via email to