solidity/test/libsolidity/semanticTests/inheritance/derived_overload_base_function_direct.sol
2022-05-19 20:23:28 +02:00

22 lines
312 B
Solidity

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);
}
}
// ====
// compileToEwasm: also
// ----
// g() -> 2