Test that uses function call options on overloaded function.

This commit is contained in:
chriseth 2020-01-23 15:52:44 +01:00
parent 981ed5f773
commit 2fa586beac

View File

@ -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.