diff options
author | Christian Parpart <christian@parpart.family> | 2018-06-11 20:15:27 +0800 |
---|---|---|
committer | Christian Parpart <christian@ethereum.org> | 2018-06-26 16:40:26 +0800 |
commit | e38139c800a780ee6d7aeb55af86aea16a08a907 (patch) | |
tree | d6f2fe45fce21ba5980cf4a63e84701ebf9f37d8 /test/libsolidity/syntaxTests/nameAndTypeResolution/244_tuples.sol | |
parent | a083ccd4575bede56724e9ef851a2035f7d5ffb0 (diff) | |
download | dexon-solidity-e38139c800a780ee6d7aeb55af86aea16a08a907.tar dexon-solidity-e38139c800a780ee6d7aeb55af86aea16a08a907.tar.gz dexon-solidity-e38139c800a780ee6d7aeb55af86aea16a08a907.tar.bz2 dexon-solidity-e38139c800a780ee6d7aeb55af86aea16a08a907.tar.lz dexon-solidity-e38139c800a780ee6d7aeb55af86aea16a08a907.tar.xz dexon-solidity-e38139c800a780ee6d7aeb55af86aea16a08a907.tar.zst dexon-solidity-e38139c800a780ee6d7aeb55af86aea16a08a907.zip |
test: Adapted to the change of the var-keyword elimination.
Diffstat (limited to 'test/libsolidity/syntaxTests/nameAndTypeResolution/244_tuples.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/nameAndTypeResolution/244_tuples.sol | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/244_tuples.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/244_tuples.sol index 43553af9..3112f67a 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/244_tuples.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/244_tuples.sol @@ -1,17 +1,13 @@ contract C { function f() public { uint a = (1); - var (b,) = (uint8(1),); - var (c,d) = (uint32(1), 2 + a); - var (e,) = (uint64(1), 2, b); + (uint b,) = (uint8(1),); + (uint c, uint d) = (uint32(1), 2 + a); + (uint e,) = (uint64(1), 2, b); a;b;c;d;e; } } // ---- -// Warning: (74-75): Use of the "var" keyword is deprecated. -// Warning: (106-107): Use of the "var" keyword is deprecated. -// Warning: (108-109): Use of the "var" keyword is deprecated. -// Warning: (146-147): Use of the "var" keyword is deprecated. -// Warning: (69-91): Different number of components on the left hand side (2) than on the right hand side (1). -// Warning: (141-169): Different number of components on the left hand side (2) than on the right hand side (3). -// Warning: (17-195): Function state mutability can be restricted to pure +// 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 |