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

22 lines
342 B
Solidity
Raw Normal View History

contract A {
function f() internal virtual returns (uint256) {
return 1;
}
}
contract B is A {
function f() internal override returns (uint256) {
return 2;
}
function g() public returns (uint256) {
return A.f();
}
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// g() -> 1