mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
OverrideSpecifier: Check for null before dereferencing
This commit is contained in:
committed by
chriseth
parent
d393624384
commit
3a8a74cbc7
@@ -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 ().
|
||||
Reference in New Issue
Block a user