diff options
author | chriseth <chris@ethereum.org> | 2018-04-19 02:40:46 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-04-19 05:56:45 +0800 |
commit | a94945dfe40c879b6c3762620987a235582ccecf (patch) | |
tree | cd1308012cd19a0bded85f412291e34e7e1e4578 /test/libsolidity/syntaxTests/memberLookup/failed_function_lookup.sol | |
parent | 17beac1e07fba46f14d458ee600502c1da723f4f (diff) | |
download | dexon-solidity-a94945dfe40c879b6c3762620987a235582ccecf.tar.gz dexon-solidity-a94945dfe40c879b6c3762620987a235582ccecf.tar.zst dexon-solidity-a94945dfe40c879b6c3762620987a235582ccecf.zip |
Improve error message for failed member lookup.
Diffstat (limited to 'test/libsolidity/syntaxTests/memberLookup/failed_function_lookup.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/memberLookup/failed_function_lookup.sol | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/memberLookup/failed_function_lookup.sol b/test/libsolidity/syntaxTests/memberLookup/failed_function_lookup.sol new file mode 100644 index 00000000..c23992e9 --- /dev/null +++ b/test/libsolidity/syntaxTests/memberLookup/failed_function_lookup.sol @@ -0,0 +1,7 @@ +contract C { + function f(uint, uint) {} + function f(uint) {} + function g() { f(1, 2, 3); } +} +// ---- +// TypeError: (80-81): No matching declaration found after argument-dependent lookup. |