The below code compiles, but fails at run time with "No appropriate switch clause found".
This could be made a compiler error.
void main()
{
int x = 10;
switch (x)
{
if (x == 10)
{
return;
}
}
}
Comment #1 by alex — 2015-12-31T07:56:04Z
I am using gdc, but I understand this would be a frontend issue.