mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
7 lines
253 B
Solidity
7 lines
253 B
Solidity
|
contract Test {
|
||
|
function f() public { var x = new Test(); }
|
||
|
}
|
||
|
// ----
|
||
|
// Warning: (42-47): Use of the "var" keyword is deprecated.
|
||
|
// TypeError: (50-58): Circular reference for contract creation (cannot create instance of derived or same contract).
|