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