solidity/test/libsolidity/semanticTests/intheritance/overloaded_function_call_resolve_to_first.sol

19 lines
318 B
Solidity
Raw Normal View History

contract test {
function f(uint256 k) public returns (uint256 d) {
return k;
}
function f(uint256 a, uint256 b) public returns (uint256 d) {
return a + b;
}
function g() public returns (uint256 d) {
return f(3);
}
}
// ====
// compileViaYul: also
// ----
// g() -> 3