solidity/test/libsolidity/syntaxTests/inheritance/override/public_var_missing_override.sol
2022-04-01 23:41:18 -05:00

12 lines
289 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 4327: (154-165='override(A)'): Public state variable needs to specify overridden contract "B".