GNOME Bugzilla – Bug 614916
Namespace and local variable names can collide
Last modified: 2011-02-08 17:11:22 UTC
Consider this code: namespace Name { public string val() { return "val"; } } void main() { string name_val = Name.val(); print(name_val); } The generated C code in main winds up looking like this: char* name_val; name_val = name_val (); which the C compiler doesn't like: test.vala: In function ‘_vala_main’: test.vala:9: error: called object ‘name_val’ is not a function I'm using Vala 0.8.0.
Created attachment 158006 [details] Test case.
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 472259 ***