//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. pragma solidity ^0.4.18; contract Foo { struct Item { uint[] test; } mapping (bytes32 => Thing) things; struct Thing { Item[] items; } function Foo(bytes32 id) { Thing memory thing = Thing(new Item[](1)); things[id] = thing; } }
0.4.18