Trying to do this:
contract Foo {
mapping (bytes32 => Thing) things;
struct Thing {
Item[] items;
}
struct Item {
uint number;
}
function Foo(bytes32 id) {
Thing memory thing = Thing(); // What to do here to create empty array of type Item[]?
things[id] = thing;
}
}
and I get the error message:
Untitled:13:30: Error: Wrong argument count for function call: 0 arguments given but expected 1.
Thing memory thing = Thing();