How to initialize an array?

ThePiachuThePiachu Member Posts: 16
I want to initialize an array in a Solidity contract and I can't seem to figure out what's the proper syntax for it. A simple approach like:

contract Test { string32[] test = {"A", "B"}; }

gives an error of:

:2:23: Error: Expected primary expression. string32[] test = {"A", "B"}; ^


Sign In or Register to comment.