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

11 lines
227 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 {}
interface SubB is Parent {}
contract C is SubA, SubB {
function test() external override returns (uint256) { return 42; }
}