solidity/test/libsolidity/syntaxTests/constructor/not_a_contract.sol
2022-04-01 23:41:18 -05:00

10 lines
240 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 5540: (147-152='new S'): Identifier is not a contract.