mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
6 lines
272 B
Solidity
6 lines
272 B
Solidity
|
contract A { function f() public { new B(); } }
|
||
|
contract B { function f() public { new C(); } }
|
||
|
contract C { function f() public { new A(); } }
|
||
|
// ----
|
||
|
// TypeError: (131-136): Circular reference for contract creation (cannot create instance of derived or same contract).
|