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

12 lines
270 B
Solidity

interface A {
function foo() external returns (uint);
}
interface B {
function foo() external returns (uint);
}
contract X is A, B {
uint public override(A) foo;
}
// ----
// TypeError: (154-165): Public state variable needs to specify overridden contract "B".