Do not treat inheritance constructors as branches (#594)
parent
4487a1b5f6
commit
350e699762
@ -0,0 +1,17 @@ |
||||
pragma solidity ^0.7.0; |
||||
|
||||
contract Parent { |
||||
string public name; |
||||
|
||||
constructor(string memory _name) public { |
||||
name = _name; |
||||
} |
||||
} |
||||
|
||||
contract Test is Parent { |
||||
constructor() public Parent("Test") {} |
||||
|
||||
function a() public { |
||||
uint x = 5; |
||||
} |
||||
} |
Loading…
Reference in new issue