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.