solidity/test/libsolidity/syntaxTests/constructor/not_a_contract.sol
2019-02-13 16:31:26 +01:00

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.