https://issues.dlang.org/show_bug.cgi?id=17800
--- Comment #1 from Илья Ярошенко <[email protected]> --- struct S { enum N = 1; } S foo(S v) @nogc { static foreach(_; 0 .. typeof(return).N) { } return S.init; } ---- Error: cannot use typeof(return) inside function __lambda1 with inferred return type --
