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

23 lines
335 B
Solidity
Raw Normal View History

contract B {
function f() public returns (uint256) {
return 10;
}
}
contract C is B {
function f(uint256 i) public returns (uint256) {
return 2 * i;
}
function g() public returns (uint256) {
return f(1);
}
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// g() -> 2