[Issue 15166] [REG2.069-devel] spurious statement not reachable warning in static foreach loop

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Oct 10 13:10:15 PDT 2015


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

--- Comment #2 from Martin Nowak <code at dawg.eu> ---
This is as annoying as go's stupid "unused variable" warning, at least during
development.

> I'm not sure how we can "fix" this and issue 14835.

I guess the fix would be to mark those returns as dependent on the template
types and not account for them when computing not reachable statements, but
that sounds like quite a difficult change.
I guess we might fix this in vibe.d but it might break a lot more code.

--


More information about the Digitalmars-d-bugs mailing list