solidity/test/libsolidity/syntaxTests/constructor/abstract_creation_forward_reference.sol
2018-11-30 16:30:19 +01:00

16 lines
349 B
Solidity

// This used to cause an internal error because of the visitation order.
contract Test {
function createChild() public {
Child asset = new Child();
}
}
contract Parent {
constructor(address _address) public {}
}
contract Child is Parent {
}
// ----
// TypeError: (146-155): Trying to create an instance of an abstract contract.