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

10 lines
216 B
Solidity

interface A {
function foo() external returns (uint);
}
interface B {}
contract X is A {
uint public override(A, B) foo;
}
// ----
// TypeError 2353: (106-120): Invalid contract specified in override list: "B".