diff options
author | chriseth <chris@ethereum.org> | 2018-05-16 15:44:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-16 15:44:47 +0800 |
commit | 03c248440770202bb67b4818ff86608fd6a7789d (patch) | |
tree | e192ce036784bef7362e33052c43323c2a1f31b6 /test/libsolidity/syntaxTests/parsing/tuples.sol | |
parent | c9879a6b2b20d455e30119639bbe5f052bd813e1 (diff) | |
parent | 7fb43fe8542679fe91fef460d1a5d15fb8f83cca (diff) | |
download | dexon-solidity-03c248440770202bb67b4818ff86608fd6a7789d.tar dexon-solidity-03c248440770202bb67b4818ff86608fd6a7789d.tar.gz dexon-solidity-03c248440770202bb67b4818ff86608fd6a7789d.tar.bz2 dexon-solidity-03c248440770202bb67b4818ff86608fd6a7789d.tar.lz dexon-solidity-03c248440770202bb67b4818ff86608fd6a7789d.tar.xz dexon-solidity-03c248440770202bb67b4818ff86608fd6a7789d.tar.zst dexon-solidity-03c248440770202bb67b4818ff86608fd6a7789d.zip |
Merge pull request #4145 from ethereum/more-parser-test-moves
Move couple of parser tests to syntax tests.
Diffstat (limited to 'test/libsolidity/syntaxTests/parsing/tuples.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/parsing/tuples.sol | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/tuples.sol b/test/libsolidity/syntaxTests/parsing/tuples.sol new file mode 100644 index 00000000..6f739740 --- /dev/null +++ b/test/libsolidity/syntaxTests/parsing/tuples.sol @@ -0,0 +1,24 @@ +contract C { + function f() { + uint a = (1); + var (b,) = (1,); + var (c,d) = (1, 2 + a); + var (e,) = (1, 2, b); + (a) = 3; + } +} +// ---- +// Warning: (52-53): Use of the "var" keyword is deprecated. +// Warning: (71-72): Use of the "var" keyword is deprecated. +// Warning: (73-74): Use of the "var" keyword is deprecated. +// Warning: (97-98): Use of the "var" keyword is deprecated. +// Warning: (47-62): Different number of components on the left hand side (2) than on the right hand side (1). +// Warning: (47-62): The type of this variable was inferred as uint8, which can hold values between 0 and 255. This is probably not desired. Use an explicit type to silence this warning. +// Warning: (66-88): The type of this variable was inferred as uint8, which can hold values between 0 and 255. This is probably not desired. Use an explicit type to silence this warning. +// Warning: (92-112): Different number of components on the left hand side (2) than on the right hand side (3). +// Warning: (92-112): The type of this variable was inferred as uint8, which can hold values between 0 and 255. This is probably not desired. Use an explicit type to silence this warning. +// Warning: (14-127): No visibility specified. Defaulting to "public". +// Warning: (71-72): Unused local variable. +// Warning: (73-74): Unused local variable. +// Warning: (97-98): Unused local variable. +// Warning: (14-127): Function state mutability can be restricted to pure |