solidity/test/libsolidity/syntaxTests/inheritance/override/private_state_variable.sol
2022-04-01 23:41:18 -05:00

10 lines
223 B
Solidity

contract C1 {
function f() external pure returns(int) { return 42; }
}
contract C is C1 {
int override f;
}
// ----
// TypeError 8022: (96-110='int override f'): Override can only be used with public state variables.