Merge pull request #10886 from ethereum/issue-10874

OverrideSpecifier: Check for null before dereferencing
This commit is contained in:
chriseth
2021-02-04 14:12:07 +01:00
committed by GitHub
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 ().