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 592886 - Object a,b,c; variable definition fail to parse
Object a,b,c; variable definition fail to parse
Status: RESOLVED DUPLICATE of bug 530030
Product: vala
Classification: Core
Component: Parser
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2009-08-24 11:57 UTC by pancake
Modified: 2009-08-31 20:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description pancake 2009-08-24 11:57:08 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;
Comment 1 Adam Dingle 2009-08-31 15:27:22 UTC
It appears that this is a duplicate of bug 530030.

http://bugzilla.gnome.org/show_bug.cgi?id=530030
Comment 2 Jürg Billeter 2009-08-31 20:05:17 UTC

*** This bug has been marked as a duplicate of bug 530030 ***