GNOME Bugzilla – Bug 592886
Object a,b,c; variable definition fail to parse
Last modified: 2009-08-31 20:05:17 UTC
The following code fails to compile: --- class Foo { public Foo() { stdout.printf("Hello World\n"); } } Foo a,b,c; void main() { a = new Foo(); b = new Foo(); c = new Foo(); } --- But defining a,b,c inside the main() function or as in multiple rows works: Foo a; Foo b; Foo c;
It appears that this is a duplicate of bug 530030. http://bugzilla.gnome.org/show_bug.cgi?id=530030
*** This bug has been marked as a duplicate of bug 530030 ***