mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update tests for interface inheritance
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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.
|
||||
Reference in New Issue
Block a user