After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 601341 - declaring a constant
declaring a constant
Status: RESOLVED DUPLICATE of bug 530623
Product: vala
Classification: Core
Component: Semantic Analyzer
0.7.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2009-11-09 23:59 UTC by ccadete
Modified: 2010-01-08 22:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description ccadete 2009-11-09 23:59:54 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;
	          ^
Comment 1 Jürg Billeter 2010-01-08 22:15:31 UTC
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 ***