mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
19 lines
487 B
Solidity
19 lines
487 B
Solidity
|
interface IBase {
|
||
|
function foo() external view;
|
||
|
}
|
||
|
|
||
|
contract Base1 is IBase { function foo() public virtual view {} }
|
||
|
contract Base2 is IBase { function foo() public virtual view {} }
|
||
|
|
||
|
interface IExt1a is IBase {}
|
||
|
interface IExt1b is IBase {}
|
||
|
interface IExt2a is IBase {}
|
||
|
interface IExt2b is IBase {}
|
||
|
|
||
|
contract Ext1 is IExt1a, IExt1b, Base1 {}
|
||
|
contract Ext2 is IExt2a, IExt2b, Base2 {}
|
||
|
|
||
|
contract Impl is Ext1, Ext2 {
|
||
|
function foo() public view override (IBase, Base1, Base2) {}
|
||
|
}
|