solidity/test/libsolidity/syntaxTests/inheritance/override/interface_exception/diamond_needed.sol
2022-04-01 23:41:18 -05:00

20 lines
619 B
Solidity

interface I {
function f() external;
function g() external;
function h() external;
}
interface J {
function f() external;
function g() external;
function h() external;
}
contract C is I, J {
function f() external {}
function g() external override {}
function h() external override(I) {}
}
// ----
// TypeError 4327: (198-222='function f() external {}'): Function needs to specify overridden contracts "I" and "J".
// TypeError 4327: (246-254='override'): Function needs to specify overridden contracts "I" and "J".
// TypeError 4327: (281-292='override(I)'): Function needs to specify overridden contract "J".