diff options
author | Erik Kundt <bitshift@posteo.org> | 2018-07-02 23:47:48 +0800 |
---|---|---|
committer | Erik Kundt <bitshift@posteo.org> | 2018-07-04 16:45:59 +0800 |
commit | 2e0d019ef09ac4f168a4e528f8b4a051a942a479 (patch) | |
tree | eff18ba14670133da9c777fb446bc94e2ea0a2cb /test/libsolidity/syntaxTests/memberLookup | |
parent | 533d5d4b1cc4374decc704de8c86ad4cef6214fc (diff) | |
download | dexon-solidity-2e0d019ef09ac4f168a4e528f8b4a051a942a479.tar dexon-solidity-2e0d019ef09ac4f168a4e528f8b4a051a942a479.tar.gz dexon-solidity-2e0d019ef09ac4f168a4e528f8b4a051a942a479.tar.bz2 dexon-solidity-2e0d019ef09ac4f168a4e528f8b4a051a942a479.tar.lz dexon-solidity-2e0d019ef09ac4f168a4e528f8b4a051a942a479.tar.xz dexon-solidity-2e0d019ef09ac4f168a4e528f8b4a051a942a479.tar.zst dexon-solidity-2e0d019ef09ac4f168a4e528f8b4a051a942a479.zip |
Adds default visibility specifier to syntax tests.
Diffstat (limited to 'test/libsolidity/syntaxTests/memberLookup')
-rw-r--r-- | test/libsolidity/syntaxTests/memberLookup/failed_function_lookup.sol | 8 | ||||
-rw-r--r-- | test/libsolidity/syntaxTests/memberLookup/failed_function_lookup_in_library.sol | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/test/libsolidity/syntaxTests/memberLookup/failed_function_lookup.sol b/test/libsolidity/syntaxTests/memberLookup/failed_function_lookup.sol index c23992e9..119df5d3 100644 --- a/test/libsolidity/syntaxTests/memberLookup/failed_function_lookup.sol +++ b/test/libsolidity/syntaxTests/memberLookup/failed_function_lookup.sol @@ -1,7 +1,7 @@ contract C { - function f(uint, uint) {} - function f(uint) {} - function g() { f(1, 2, 3); } + function f(uint, uint) public {} + function f(uint) public {} + function g() public { f(1, 2, 3); } } // ---- -// TypeError: (80-81): No matching declaration found after argument-dependent lookup. +// TypeError: (101-102): No matching declaration found after argument-dependent lookup. diff --git a/test/libsolidity/syntaxTests/memberLookup/failed_function_lookup_in_library.sol b/test/libsolidity/syntaxTests/memberLookup/failed_function_lookup_in_library.sol index 310c4a10..df0cba3f 100644 --- a/test/libsolidity/syntaxTests/memberLookup/failed_function_lookup_in_library.sol +++ b/test/libsolidity/syntaxTests/memberLookup/failed_function_lookup_in_library.sol @@ -1,9 +1,9 @@ library L { - function f(uint, uint) {} - function f(uint) {} + function f(uint, uint) public {} + function f(uint) public {} } contract C { - function g() { L.f(1, 2, 3); } + function g() public { L.f(1, 2, 3); } } // ---- -// TypeError: (94-97): Member "f" not found or not visible after argument-dependent lookup in type(library L) +// TypeError: (115-118): Member "f" not found or not visible after argument-dependent lookup in type(library L) |