mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
16 lines
349 B
Solidity
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.
|