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

12 lines
233 B
Solidity

contract A {
uint public foo;
}
contract B {
function foo() external virtual pure returns(uint) { return 5; }
}
contract X is A, B {
uint public override foo;
}
// ----
// DeclarationError: (136-160): Identifier already declared.