diff options
author | chriseth <chris@ethereum.org> | 2018-07-02 19:06:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-02 19:06:59 +0800 |
commit | 9a71b69f4009d6e0ccac715648b06994ef321d3f (patch) | |
tree | cb86c07d714f427a07150ef8d97143c1c864eefb /test/libsolidity/syntaxTests/parsing/tuples.sol | |
parent | 8a4980c05ef7d3408dfb138b17b1610ef648d441 (diff) | |
parent | 1b008c62a1e2475fe0fc160150dca482009912d1 (diff) | |
download | dexon-solidity-9a71b69f4009d6e0ccac715648b06994ef321d3f.tar dexon-solidity-9a71b69f4009d6e0ccac715648b06994ef321d3f.tar.gz dexon-solidity-9a71b69f4009d6e0ccac715648b06994ef321d3f.tar.bz2 dexon-solidity-9a71b69f4009d6e0ccac715648b06994ef321d3f.tar.lz dexon-solidity-9a71b69f4009d6e0ccac715648b06994ef321d3f.tar.xz dexon-solidity-9a71b69f4009d6e0ccac715648b06994ef321d3f.tar.zst dexon-solidity-9a71b69f4009d6e0ccac715648b06994ef321d3f.zip |
Merge pull request #4386 from ethereum/testingDefaultVisibility
Specify default visibility in syntax tests
Diffstat (limited to 'test/libsolidity/syntaxTests/parsing/tuples.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/parsing/tuples.sol | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/tuples.sol b/test/libsolidity/syntaxTests/parsing/tuples.sol index d691da44..8266c94f 100644 --- a/test/libsolidity/syntaxTests/parsing/tuples.sol +++ b/test/libsolidity/syntaxTests/parsing/tuples.sol @@ -1,5 +1,5 @@ contract C { - function f() { + function f() public { uint a = (1); (uint b,) = (1,); (uint c, uint d) = (1, 2 + a); @@ -8,10 +8,9 @@ contract C { } } // ---- -// Warning: (47-63): Different number of components on the left hand side (2) than on the right hand side (1). -// Warning: (100-121): Different number of components on the left hand side (2) than on the right hand side (3). -// Warning: (14-136): No visibility specified. Defaulting to "public". -// Warning: (68-74): Unused local variable. -// Warning: (76-82): Unused local variable. -// Warning: (101-107): Unused local variable. -// Warning: (14-136): Function state mutability can be restricted to pure +// 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 |