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

12 lines
370 B
Solidity

contract C {
function f(uint x, string memory y, bool z) internal {}
function f(string memory y, uint x, bool z) internal {}
function f(bool z, string memory y, uint x) internal {}
function call() internal {
f({x: 1, y: "abc", z: true});
}
}
// ----
// TypeError 4487: (233-234): No unique declaration found after argument-dependent lookup.