diff options
author | chriseth <chris@ethereum.org> | 2018-09-11 15:23:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-11 15:23:26 +0800 |
commit | 7d5c13981623f5f931444d227b163d9b0d995fd8 (patch) | |
tree | 6cac33563b4a0b17234da4342ff6b7735fc038c1 | |
parent | d66e956ac20e2883cd389e8a6732c6f0912d158e (diff) | |
parent | d33a99799df538c4d68346c241d93d17cfecfb43 (diff) | |
download | dexon-solidity-7d5c13981623f5f931444d227b163d9b0d995fd8.tar.gz dexon-solidity-7d5c13981623f5f931444d227b163d9b0d995fd8.tar.zst dexon-solidity-7d5c13981623f5f931444d227b163d9b0d995fd8.zip |
Merge pull request #4935 from elopio/patch-5
On a yul switch, at least one case is required when there is no default statement
-rw-r--r-- | docs/yul.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/yul.rst b/docs/yul.rst index 87fd95eb..e010a708 100644 --- a/docs/yul.rst +++ b/docs/yul.rst @@ -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 = |