GNOME Bugzilla – Bug 601341
declaring a constant
Last modified: 2010-01-08 22:15:31 UTC
The program: static void main(string[] args){ const int i = 0; stdout.printf("Hello"); } tries to declare a const variable, I think this is not implemented in vala, but the error message is indeed not right, as should be an error on const: error: syntax error, expected `;' const int i = 0; ^
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 530623 ***