diff options
author | Erik Kundt <bitshift@posteo.org> | 2018-06-29 20:55:44 +0800 |
---|---|---|
committer | Erik Kundt <bitshift@posteo.org> | 2018-06-29 22:26:18 +0800 |
commit | f3ca0685feb4b8d499914a3c1ff9432d4cef4b7e (patch) | |
tree | 4e28ae068e58badda1f684617d661990a2dec850 /test/libsolidity/syntaxTests/parsing/conditional_with_constants.sol | |
parent | e289c36158701ba0b874051e9e426e270b0e38e2 (diff) | |
download | dexon-solidity-f3ca0685feb4b8d499914a3c1ff9432d4cef4b7e.tar dexon-solidity-f3ca0685feb4b8d499914a3c1ff9432d4cef4b7e.tar.gz dexon-solidity-f3ca0685feb4b8d499914a3c1ff9432d4cef4b7e.tar.bz2 dexon-solidity-f3ca0685feb4b8d499914a3c1ff9432d4cef4b7e.tar.lz dexon-solidity-f3ca0685feb4b8d499914a3c1ff9432d4cef4b7e.tar.xz dexon-solidity-f3ca0685feb4b8d499914a3c1ff9432d4cef4b7e.tar.zst dexon-solidity-f3ca0685feb4b8d499914a3c1ff9432d4cef4b7e.zip |
Updates syntax tests to specify default visibility.
Diffstat (limited to 'test/libsolidity/syntaxTests/parsing/conditional_with_constants.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/parsing/conditional_with_constants.sol | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/conditional_with_constants.sol b/test/libsolidity/syntaxTests/parsing/conditional_with_constants.sol index 35da69c6..705fbadf 100644 --- a/test/libsolidity/syntaxTests/parsing/conditional_with_constants.sol +++ b/test/libsolidity/syntaxTests/parsing/conditional_with_constants.sol @@ -1,11 +1,10 @@ contract A { - function f() { + function f() public { uint x = 3 > 0 ? 3 : 0; uint y = (3 > 0) ? 3 : 0; } } // ---- -// Warning: (17-103): No visibility specified. Defaulting to "public". -// Warning: (40-46): Unused local variable. -// Warning: (72-78): Unused local variable. -// Warning: (17-103): Function state mutability can be restricted to pure +// Warning: (47-53): Unused local variable. +// Warning: (79-85): Unused local variable. +// Warning: (17-110): Function state mutability can be restricted to pure |