solidity/test/libsolidity/syntaxTests/constructor/abstract_creation_forward_reference.sol

16 lines
340 B
Solidity
Raw Normal View History

2018-11-29 16:59:34 +00:00
// This used to cause an internal error because of the visitation order.
contract Test {
function createChild() public {
Child asset = new Child();
}
}
contract Parent {
2020-06-23 12:14:24 +00:00
constructor(address _address) {}
2018-11-29 16:59:34 +00:00
}
contract Child is Parent {
}
// ----
2020-06-23 12:14:24 +00:00
// TypeError 3656: (226-254): Contract "Child" should be marked as abstract.