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

16 lines
233 B
Solidity

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