Require at least one case in switch

This commit is contained in:
chriseth 2017-05-19 19:07:30 +02:00 committed by Alex Beregszaszi
parent e9b08e029e
commit d9abe7b712

View File

@ -88,7 +88,7 @@ Grammar::
Expression =
FunctionCall | Identifier | Literal
Switch =
'switch' Expression Case* ( 'default' ':' Block )?
'switch' Expression Case+ ( 'default' ':' Block )?
Case =
'case' Literal ':' Block
ForLoop =