Superfluous code in switch statement

anonymous via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Sep 4 14:12:17 PDT 2015


On Friday 04 September 2015 23:04, Timon Gehr wrote:

> DMD never warns about dead code.

It warns here:

----
import std.stdio;
void main()
{
    return;
    writeln("hi"); /* Warning: statement is not reachable */
}
----


More information about the Digitalmars-d-learn mailing list