From 2fa586beac95482139674b14694130d00607092a Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 23 Jan 2020 15:52:44 +0100 Subject: [PATCH] Test that uses function call options on overloaded function. --- .../syntaxTests/functionCalls/call_options_overload.sol | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/libsolidity/syntaxTests/functionCalls/call_options_overload.sol diff --git a/test/libsolidity/syntaxTests/functionCalls/call_options_overload.sol b/test/libsolidity/syntaxTests/functionCalls/call_options_overload.sol new file mode 100644 index 000000000..ef668f29f --- /dev/null +++ b/test/libsolidity/syntaxTests/functionCalls/call_options_overload.sol @@ -0,0 +1,9 @@ +contract C { + function f(uint x) external payable { } + function f(uint x, uint y) external payable { } + function call() internal { + this.f{value: 10}(2); + } +} +// ---- +// TypeError: (148-154): Member "f" not unique after argument-dependent lookup in contract C.