OverrideSpecifier: Check for null before dereferencing

This commit is contained in:
Mathias Baumann
2021-02-04 13:17:28 +01:00
committed by chriseth
parent d393624384
commit 3a8a74cbc7
3 changed files with 15 additions and 3 deletions
@@ -0,0 +1,12 @@
contract A {
function f() public virtual {}
}
contract B {
function g() public {}
}
contract C is A,B {
function f() public override (g) {}
}
// ----
// TypeError 9301: (140-141): Expected contract but got function ().