solidity/test/libsolidity/semanticTests/functionCall/inheritance/call_base_explicit.sol

17 lines
261 B
Solidity
Raw Normal View History

contract Base {
function f(uint n) public returns (uint) {
return 2 * n;
}
}
contract Child is Base {
function g(uint n) public returns (uint) {
return Base.f(n);
}
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// g(uint256): 4 -> 8