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

6 lines
150 B
Solidity
Raw Normal View History

contract X {
uint public override foo;
}
// ----
// TypeError: (26-34): Public state variable has override specified but does not override anything.