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/nameAndTypeResolution | |
parent | 0e9415bc31fa379b2c6cc8c8dba6b6ba1305391b (diff) | |
parent | 64abfd3e4a9f2d41946fa999545b98dbdf36ad14 (diff) | |
download | dexon-solidity-6567cd3e51a097b7bc8c2a3b37e6fa35bc8a5bbb.tar dexon-solidity-6567cd3e51a097b7bc8c2a3b37e6fa35bc8a5bbb.tar.gz dexon-solidity-6567cd3e51a097b7bc8c2a3b37e6fa35bc8a5bbb.tar.bz2 dexon-solidity-6567cd3e51a097b7bc8c2a3b37e6fa35bc8a5bbb.tar.lz dexon-solidity-6567cd3e51a097b7bc8c2a3b37e6fa35bc8a5bbb.tar.xz 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/nameAndTypeResolution')
-rw-r--r-- | test/libsolidity/syntaxTests/nameAndTypeResolution/244_tuples.sol | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/244_tuples.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/244_tuples.sol index 3112f67a..95e8cf37 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/244_tuples.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/244_tuples.sol @@ -1,13 +1,13 @@ contract C { function f() public { uint a = (1); - (uint b,) = (uint8(1),); + (uint b,) = uint8(1); (uint c, uint d) = (uint32(1), 2 + a); (uint e,) = (uint64(1), 2, b); a;b;c;d;e; } } // ---- -// Warning: (69-92): Different number of components on the left hand side (2) than on the right hand side (1). -// Warning: (149-178): Different number of components on the left hand side (2) than on the right hand side (3). -// Warning: (17-204): Function state mutability can be restricted to pure +// Warning: (69-89): Different number of components on the left hand side (2) than on the right hand side (1). +// Warning: (146-175): Different number of components on the left hand side (2) than on the right hand side (3). +// Warning: (17-201): Function state mutability can be restricted to pure |