diff options
author | chriseth <chris@ethereum.org> | 2018-07-11 03:03:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-11 03:03:30 +0800 |
commit | 6567cd3e51a097b7bc8c2a3b37e6fa35bc8a5bbb (patch) | |
tree | 9d692f0c519b3d5004f2a7c7c2ac5aa0bbf72ee7 /test/libsolidity/syntaxTests/parsing | |
parent | 0e9415bc31fa379b2c6cc8c8dba6b6ba1305391b (diff) | |
parent | 64abfd3e4a9f2d41946fa999545b98dbdf36ad14 (diff) | |
download | dexon-solidity-6567cd3e51a097b7bc8c2a3b37e6fa35bc8a5bbb.tar.gz dexon-solidity-6567cd3e51a097b7bc8c2a3b37e6fa35bc8a5bbb.tar.zst dexon-solidity-6567cd3e51a097b7bc8c2a3b37e6fa35bc8a5bbb.zip |
Merge pull request #4466 from ethereum/tupleNotEmpty
Disallow empty tuple components.
Diffstat (limited to 'test/libsolidity/syntaxTests/parsing')
-rw-r--r-- | test/libsolidity/syntaxTests/parsing/tuples.sol | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/tuples.sol b/test/libsolidity/syntaxTests/parsing/tuples.sol index 8266c94f..ca2f9d6b 100644 --- a/test/libsolidity/syntaxTests/parsing/tuples.sol +++ b/test/libsolidity/syntaxTests/parsing/tuples.sol @@ -1,16 +1,16 @@ contract C { function f() public { uint a = (1); - (uint b,) = (1,); + (uint b,) = 1; (uint c, uint d) = (1, 2 + a); (uint e,) = (1, 2, b); (a) = 3; } } // ---- -// Warning: (54-70): Different number of components on the left hand side (2) than on the right hand side (1). -// Warning: (107-128): Different number of components on the left hand side (2) than on the right hand side (3). -// Warning: (75-81): Unused local variable. -// Warning: (83-89): Unused local variable. -// Warning: (108-114): Unused local variable. -// Warning: (14-143): Function state mutability can be restricted to pure +// Warning: (54-67): Different number of components on the left hand side (2) than on the right hand side (1). +// Warning: (104-125): Different number of components on the left hand side (2) than on the right hand side (3). +// Warning: (72-78): Unused local variable. +// Warning: (80-86): Unused local variable. +// Warning: (105-111): Unused local variable. +// Warning: (14-140): Function state mutability can be restricted to pure |