solidity/test/libsolidity/syntaxTests/functionCalls/call_options_overload.sol

10 lines
285 B
Solidity

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 6675: (148-154): Member "f" not unique after argument-dependent lookup in contract C.