solidity/test/libsolidity/syntaxTests/inheritance/interface/multiple_parents.sol
2020-01-22 09:40:40 -05:00

16 lines
431 B
Solidity

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.