diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-05-31 00:41:34 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-05-31 02:50:06 +0800 |
commit | 6e23006937f583dcfe0ce1a356ea57f88865974f (patch) | |
tree | 7ebf5d8543845de1500264d43542397f2123eb4b /test/libsolidity/syntaxTests/nameAndTypeResolution/244_tuples.sol | |
parent | deeca7bc5d968e90d65c3ce094ae1e93c3844637 (diff) | |
download | dexon-solidity-6e23006937f583dcfe0ce1a356ea57f88865974f.tar dexon-solidity-6e23006937f583dcfe0ce1a356ea57f88865974f.tar.gz dexon-solidity-6e23006937f583dcfe0ce1a356ea57f88865974f.tar.bz2 dexon-solidity-6e23006937f583dcfe0ce1a356ea57f88865974f.tar.lz dexon-solidity-6e23006937f583dcfe0ce1a356ea57f88865974f.tar.xz dexon-solidity-6e23006937f583dcfe0ce1a356ea57f88865974f.tar.zst dexon-solidity-6e23006937f583dcfe0ce1a356ea57f88865974f.zip |
Split out SolidityNameAndTypeResolution tests into SyntaxTests
Diffstat (limited to 'test/libsolidity/syntaxTests/nameAndTypeResolution/244_tuples.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/nameAndTypeResolution/244_tuples.sol | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/244_tuples.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/244_tuples.sol new file mode 100644 index 00000000..43553af9 --- /dev/null +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/244_tuples.sol @@ -0,0 +1,17 @@ +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); + 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 |