mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
270 B
Solidity
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".
|