Unreachable code error in switch() with braces.
LadyCailinBot opened this issue ยท 0 comments
CMDHELPER-2987 - Reported by Nessiesson
The following code:
case false:
die();
default:
die();
}```
Returns the following error:```[CommandHelper][WARNING][COMPILER] Unreachable code. Consider removing this code. C:\Users\nessi_000\Dropbox\lethe\plugins\CommandHelper\LocalPackages\test.ms:4```
This, however, does not happen with functional syntax, e.g. ```switch(true,
false,
die(),
, # default
die()
)```