https://issues.dlang.org/show_bug.cgi?id=23117
Dennis <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Dennis <[email protected]> --- Reduced to remove Phobos imports: ``` @safe: auto crash = foo([10]); void main() { assert(crash.front.front == 10); } struct Map(alias f) { int[] range; auto front() { return f(range[0]); } } struct Enumerate { int[] range; int front() { return range[0]; } } auto foo(int[] r) { return Map!(x => Enumerate(r))(r); } ``` --
