solidity/test/libsolidity/syntaxTests/inheritance/override/private_state_variable.sol

10 lines
206 B
Solidity
Raw Normal View History

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