[Issue 14835] Statement is not reachable doesn't play along generic code
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Oct 18 02:11:31 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=14835
--- Comment #9 from anonymous4 <dfj1esp02 at sneakemail.com> ---
(In reply to Walter Bright from comment #8)
> but I wonder about its affect on existing code.
Will it disable all unreachable code checks?
Try this:
int square(int num)
{
if(true)return 0;
return num * num;
}
--
More information about the Digitalmars-d-bugs
mailing list