solidity/test/libsolidity/syntaxTests/inheritance/interface/diamond/diamond_with_relist.sol

16 lines
356 B
Solidity
Raw Normal View History

2020-01-02 21:28:07 +00:00
interface Parent {
function test() external returns (uint256);
}
interface SubA is Parent {
function test() external override returns (uint256);
}
interface SubB is Parent {
function test() external override returns (uint256);
}
contract C is SubA, SubB {
function test() external override(SubA, SubB) returns (uint256) { return 42; }
}