https://issues.dlang.org/show_bug.cgi?id=22541
Dennis <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #7 from Dennis <[email protected]> --- As mentioned in the PR, that was only a partial fix, this still fails: ``` struct S { int i; int* ptr; int* wannabeReturnRef() scope return { return &i; } } ``` Error: returning `&this.i` escapes a reference to parameter `this` perhaps remove `scope` parameter annotation so `return` applies to `ref` --
