blob: 375980c3b92d338ad76a06fb582e28b9a83124f1 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
contract test {
function f() public returns (uint) { return 1; }
function f(uint a) public returns (uint) { return 2 * a; }
function g() public returns (uint) { var x = f; return x(7); }
}
// ----
// Warning: (173-178): Use of the "var" keyword is deprecated.
// TypeError: (181-182): No matching declaration found after variable lookup.
|