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 549678 - Class with public enum used in public property fails in the C compiler
Class with public enum used in public property fails in the C compiler
Status: RESOLVED DUPLICATE of bug 471244
Product: vala
Classification: Core
Component: Code Generator
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2008-08-28 08:36 UTC by Pekka Lampila
Modified: 2008-12-13 09:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Pekka Lampila 2008-08-28 08:36:03 UTC
The following code fails in the C compiler, because the enum is used before it's declared (svn revision 1764):

using GLib;
public class Foo : Object {
  public enum Bar {
    BAZ
  }
  public Bar baz;
}
Comment 1 Sam Danielson 2008-12-11 12:45:56 UTC
I also ran into this bug. It's exactly as described.
Comment 2 Jürg Billeter 2008-12-13 09:58:40 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 471244 ***