solidity/test/libsolidity/syntaxTests/inheritance/override/override_public_vars.sol
2019-12-05 12:48:52 +00:00

10 lines
272 B
Solidity

abstract contract A {
int public testvar;
}
abstract contract X is A {
int public override testvar;
}
// ----
// DeclarationError: (73-100): Identifier already declared.
// TypeError: (84-92): Public state variable has override specified but does not override anything.