solidity/test/libsolidity/syntaxTests/functionCalls/named_arguments_overload_failing2.sol
2022-04-01 23:41:18 -05:00

13 lines
338 B
Solidity

contract C {
function f(uint x) internal { }
function f(uint x, uint y) internal { }
function f(uint x, uint y, uint z) internal { }
function call() internal {
f({x:1, y: 2});
f({x:1, z: 3});
}
}
// ----
// TypeError 9322: (209-210='f'): No matching declaration found after argument-dependent lookup.