mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
On a yul switch, at least one case is required when there is no default statement
This commit is contained in:
parent
d66e956ac2
commit
d33a99799d
@ -99,9 +99,11 @@ Grammar::
|
|||||||
If =
|
If =
|
||||||
'if' Expression Block
|
'if' Expression Block
|
||||||
Switch =
|
Switch =
|
||||||
'switch' Expression Case* ( 'default' Block )?
|
'switch' Expression ( Case+ Default? | Default )
|
||||||
Case =
|
Case =
|
||||||
'case' Literal Block
|
'case' Literal Block
|
||||||
|
Default =
|
||||||
|
'default' Block
|
||||||
ForLoop =
|
ForLoop =
|
||||||
'for' Block Expression Block Block
|
'for' Block Expression Block Block
|
||||||
BreakContinue =
|
BreakContinue =
|
||||||
|
Loading…
Reference in New Issue
Block a user