solidity/test/libsolidity/syntaxTests/inheritance/interface/overrides_single.sol

15 lines
454 B
Solidity
Raw Normal View History

2020-01-02 21:28:07 +00:00
interface Super {
function test1() external returns (uint256);
function test2() external returns (uint256);
function test3() external returns (uint256);
}
interface Sub is Super {
function test1() external returns (uint256);
function test2() external override returns (uint256);
function test3() external override(Super) returns (uint256);
}
// ----
// TypeError: (197-241): Overriding function is missing "override" specifier.