Implement override checking

This commit is contained in:
Mathias Baumann
2019-10-30 17:31:33 +01:00
parent 5ff02c12e2
commit 6c6a9054b2
85 changed files with 965 additions and 204 deletions
@@ -2,11 +2,11 @@ contract a {
function f() public;
}
contract b is a {
function f() public { super.f(); }
function f() public override { super.f(); }
}
contract c is a,b {
// No error here.
function f() public { super.f(); }
function f() public override(a, b) { super.f(); }
}
// ----
// TypeError: (84-91): Member "f" not found or not visible after argument-dependent lookup in contract super b.
// TypeError: (93-100): Member "f" not found or not visible after argument-dependent lookup in contract super b.