[Issue 20149] [DIP1000] Local data escapes `opSlice` if not annotated with `return`

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 22 05:42:28 UTC 2019


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

--- Comment #1 from Mike Franklin <slavo5150 at yahoo.com> ---
> Observation-2:  Decorating `opSlice` with `return` causes a compiler error to be correctly emitted where the slice is escaping `foo`

In the example above, that should be `fun`, not `foo`.

--


More information about the Digitalmars-d-bugs mailing list