//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. pragma solidity ^0.4.18; contract Test { struct Person { string name; uint[3] numbers; } Person[] public persons; function test () public { Person memory x; x.name = "Asd"; x.numbers = [uint(1),2,3]; persons.push(x); } }
0.4.18