https://issues.dlang.org/show_bug.cgi?id=15064
--- Comment #2 from Jack Stouffer <[email protected]> --- Sorry int test() { import std.range : enumerate; int[] a = [1]; foreach (i, e; a.enumerate) {} return 0; } void main() { enum res = test(); // fails int res = test(); // works fine } --
