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/single_function_param.sol | |
parent | e289c36158701ba0b874051e9e426e270b0e38e2 (diff) | |
download | dexon-solidity-f3ca0685feb4b8d499914a3c1ff9432d4cef4b7e.tar.gz dexon-solidity-f3ca0685feb4b8d499914a3c1ff9432d4cef4b7e.tar.zst dexon-solidity-f3ca0685feb4b8d499914a3c1ff9432d4cef4b7e.zip |
Updates syntax tests to specify default visibility.
Diffstat (limited to 'test/libsolidity/syntaxTests/parsing/single_function_param.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/parsing/single_function_param.sol | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/single_function_param.sol b/test/libsolidity/syntaxTests/parsing/single_function_param.sol index 08e531f1..955f20f0 100644 --- a/test/libsolidity/syntaxTests/parsing/single_function_param.sol +++ b/test/libsolidity/syntaxTests/parsing/single_function_param.sol @@ -1,9 +1,8 @@ contract test { uint256 stateVar; - function functionName(bytes32 input) returns (bytes32 out) {} + function functionName(bytes32 input) public returns (bytes32 out) {} } // ---- -// Warning: (36-97): No visibility specified. Defaulting to "public". // Warning: (58-71): Unused function parameter. Remove or comment out the variable name to silence this warning. -// Warning: (82-93): Unused function parameter. Remove or comment out the variable name to silence this warning. -// Warning: (36-97): Function state mutability can be restricted to pure +// Warning: (89-100): Unused function parameter. Remove or comment out the variable name to silence this warning. +// Warning: (36-104): Function state mutability can be restricted to pure |