mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
350 B
Solidity
9 lines
350 B
Solidity
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.
|