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,15 @@
|
||||
interface SuperA {
|
||||
function test() external returns (uint256);
|
||||
function testA() external returns (int128);
|
||||
}
|
||||
|
||||
interface SuperB {
|
||||
function test() external returns (uint256);
|
||||
function testB() external returns (int256);
|
||||
}
|
||||
|
||||
interface Sub is SuperA, SuperB {
|
||||
}
|
||||
|
||||
// ----
|
||||
// TypeError: (236-271): Derived contract must override function "test". Two or more base classes define function with same name and parameter types.
|
||||
Reference in New Issue
Block a user