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:
chriseth 2018-09-11 09:23:26 +02:00 committed by GitHub
commit 7d5c139816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 =