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,10 @@
interface Parent {
function test() external returns (uint256);
}
interface SubA is Parent {}
interface SubB is Parent {}
contract C is SubA, SubB {
function test() external override returns (uint256) { return 42; }
}
@@ -0,0 +1,15 @@
interface Parent {
function test() external returns (uint256);
}
interface SubA is Parent {
function test() external override returns (uint256);
}
interface SubB is Parent {
function test() external override returns (uint256);
}
contract C is SubA, SubB {
function test() external override(SubA, SubB) returns (uint256) { return 42; }
}