Fix internal compiler error for unimplemented base contract function.

This commit is contained in:
Anurag Dashputre
2018-12-03 12:25:31 +01:00
committed by chriseth
parent 4b98946e5a
commit 82f5763e7a
4 changed files with 23 additions and 1 deletions
@@ -0,0 +1,8 @@
contract a {
function f() public;
}
contract b is a {
function f() public { super.f(); }
}
// ----
// TypeError: (84-91): Member "f" not found or not visible after argument-dependent lookup in contract super b.
@@ -0,0 +1,12 @@
contract a {
function f() public;
}
contract b is a {
function f() public { super.f(); }
}
contract c is a,b {
// No error here.
function f() public { super.f(); }
}
// ----
// TypeError: (84-91): Member "f" not found or not visible after argument-dependent lookup in contract super b.