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