diff options
author | Erik Kundt <bitshift@posteo.org> | 2018-07-02 17:44:16 +0800 |
---|---|---|
committer | Erik Kundt <bitshift@posteo.org> | 2018-07-02 17:44:16 +0800 |
commit | 1b008c62a1e2475fe0fc160150dca482009912d1 (patch) | |
tree | 0dac9fbf3ba8ffb3a631fd94788e2f3f0810106d /test/libsolidity | |
parent | f3ca0685feb4b8d499914a3c1ff9432d4cef4b7e (diff) | |
download | dexon-solidity-1b008c62a1e2475fe0fc160150dca482009912d1.tar.gz dexon-solidity-1b008c62a1e2475fe0fc160150dca482009912d1.tar.zst dexon-solidity-1b008c62a1e2475fe0fc160150dca482009912d1.zip |
Adds review suggestions.
Diffstat (limited to 'test/libsolidity')
-rw-r--r-- | test/libsolidity/syntaxTests/fallback/default_visibility.sol | 4 | ||||
-rw-r--r-- | test/libsolidity/syntaxTests/visibility/interface/function_default.sol | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/test/libsolidity/syntaxTests/fallback/default_visibility.sol b/test/libsolidity/syntaxTests/fallback/default_visibility.sol index aeb23d2e..2cb0af90 100644 --- a/test/libsolidity/syntaxTests/fallback/default_visibility.sol +++ b/test/libsolidity/syntaxTests/fallback/default_visibility.sol @@ -1,4 +1,6 @@ contract C { // Check that visibility is also enforced for the fallback function. - function() public {} + function() {} } +// ---- +// Warning: (90-103): No visibility specified. Defaulting to "public". diff --git a/test/libsolidity/syntaxTests/visibility/interface/function_default.sol b/test/libsolidity/syntaxTests/visibility/interface/function_default.sol index de4ee9d0..72ce3b40 100644 --- a/test/libsolidity/syntaxTests/visibility/interface/function_default.sol +++ b/test/libsolidity/syntaxTests/visibility/interface/function_default.sol @@ -1,3 +1,6 @@ interface I { - function f() external; + function f(); } +// ---- +// Warning: (15-28): Functions in interfaces should be declared external. +// Warning: (15-28): No visibility specified. Defaulting to "public". In interfaces it defaults to external. |