https://issues.dlang.org/show_bug.cgi?id=13244
--- Comment #1 from Vladimir Panteleev <[email protected]> --- Reduced: //////////////// test.d /////////////// struct MapResult(alias fun) { @property empty() { return false; } void popFront() { } @property front() { return fun(0); } } auto map(alias fun)() { return MapResult!fun(); } void all(Range)(Range haystack) { foreach (e; haystack) if (e) return; } void main() { auto arr = [[1]]; foreach (ref x; arr) map!(c => x[c]).all; } /////////////////////////////////////// --
