GNOME Bugzilla – Bug 541152
Parser doesn't allow local const arrays
Last modified: 2008-07-02 06:10:25 UTC
The following code: const string[] global = {"foo"}; void func() { const string[] local = {"bar"}; } results in: error: syntax error, expected `;' const string[] local = {"bar"}; ^ That is, valac allows the global, but not the local const array. I figure it should allow both.
*** This bug has been marked as a duplicate of 530623 ***