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

16 lines
436 B
Solidity
Raw Normal View History

2020-01-02 21:28:07 +00:00
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 6480: (236-271): Derived contract must override function "test". Two or more base classes define function with same name and parameter types.