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

20 lines
295 B
Solidity

contract A {
function f() external virtual returns (uint256) {
return 1;
}
}
contract B is A {
function f() public override returns (uint256) {
return 2;
}
function g() public returns (uint256) {
return f();
}
}
// ----
// f() -> 2
// g() -> 2