mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix function calls with named arguments for overloaded functions
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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, z: 3});
|
||||
f({y:2, v: 10, z: 3});
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (214-215): No matching declaration found after argument-dependent lookup.
|
||||
Reference in New Issue
Block a user