mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
227 B
Solidity
10 lines
227 B
Solidity
|
// This used to cause an internal error because of the visitation order.
|
||
|
contract Test {
|
||
|
struct S { uint a; }
|
||
|
function f() public {
|
||
|
new S();
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError: (147-152): Identifier is not a contract.
|