GNOME Bugzilla – Bug 515225
Incorrect use of C reserved keywords in generated code
Last modified: 2009-04-10 08:31:24 UTC
Vala is really a lot of fun! :) using GLib; public class Foo1.Main : Object { public void run (bool @if, bool @then, bool @foreach) { var @true = "true"; if (@if) message (@true); } static int main (string[] args) { var main = new Main (); main.run (true, true, true); return 0; } }
Confirming.
*** Bug 515423 has been marked as a duplicate of this bug. ***
commit 74cb5c7d6d1df95f7779f84b58f31ceeab5417ad Author: Jürg Billeter <j@bitron.ch> Date: Fri Apr 10 10:27:11 2009 +0200 Improve handling of reserved identifiers Avoid conflicts between reserved identifiers and generated code for local variables and formal parameters. Fixes bug 469335 and bug 515225.