solidity/test/libsolidity/semanticTests/functionCall/inheritance/call_base_explicit.sol
2023-05-11 10:56:55 -05:00

14 lines
206 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 Base.f(n);
}
}
// ----
// g(uint256): 4 -> 8