import std.stdio : writeln;
void fn()
{
switch (1)
{
default:
break;
{
writeln("never reached");
switch (1) { default: break; }
}
}
}
compile: dmd -w test.d
it will give the warning if the the switch after writeln() is commented out, or if the block after break; is replaced with the two statements it contains
Comment #1 by moonlightsentinel — 2022-04-10T19:45:20Z
Regression introduced in 2.063.1 according to run.dlang.io. Probably caused by the same PR that introduced issue 22999