Update tests for interface inheritance

This commit is contained in:
Jason Cobb
2020-01-22 09:40:40 -05:00
parent 573a054d5d
commit 595f569e97
14 changed files with 196 additions and 2 deletions
@@ -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.