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

13 lines
223 B
Solidity
Raw Normal View History

2018-04-17 09:39:40 +00:00
// Previously, the type information for A was not yet available at the point of
// "new A".
contract B {
A a;
constructor() public {
a = new A(address(this));
2018-04-17 09:39:40 +00:00
}
}
contract A {
constructor(address) public {}
2018-04-17 09:39:40 +00:00
}
// ----