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/visibility_specifiers.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/visibility_specifiers.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/parsing/visibility_specifiers.sol | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/visibility_specifiers.sol b/test/libsolidity/syntaxTests/parsing/visibility_specifiers.sol index 4706a26d..db890b37 100644 --- a/test/libsolidity/syntaxTests/parsing/visibility_specifiers.sol +++ b/test/libsolidity/syntaxTests/parsing/visibility_specifiers.sol @@ -3,15 +3,12 @@ contract c { uint internal b; uint public c; uint d; - function f() {} + function f() public {} function f_priv() private {} - function f_public() public {} function f_internal() internal {} } // ---- // Warning: (58-71): This declaration shadows an existing declaration. -// Warning: (89-104): No visibility specified. Defaulting to "public". -// Warning: (89-104): Function state mutability can be restricted to pure -// Warning: (109-137): Function state mutability can be restricted to pure -// Warning: (142-171): Function state mutability can be restricted to pure -// Warning: (176-209): Function state mutability can be restricted to pure +// Warning: (89-111): Function state mutability can be restricted to pure +// Warning: (116-144): Function state mutability can be restricted to pure +// Warning: (149-182): Function state mutability can be restricted to pure |