mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Require at least one case in switch
This commit is contained in:
parent
e9b08e029e
commit
d9abe7b712
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user