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 555047 - Referencing variable in static declaration
Referencing variable in static declaration
Status: RESOLVED DUPLICATE of bug 516287
Product: vala
Classification: Core
Component: general
0.3.x
Other All
: Normal critical
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2008-10-04 23:32 UTC by ccadete
Modified: 2008-10-05 05:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description ccadete 2008-10-04 23:32:22 UTC
Steps to reproduce:
using GLib;

namespace GCalculator {

    public static string PACKAGE_GLADE_DIR = "";
    public static string MAIN_GLADE_FILE = PACKAGE_GLADE_DIR + "/main_frame.glade";
}

Stack trace:
error: The name `PACKAGE_GLADE_DIR' does not exist in the context of `GLib'
    public static string MAIN_GLADE_FILE = PACKAGE_GLADE_DIR + "/main_frame.glade";
                                           ^^^^^^^^^^^^^^^^^


Other information:
Comment 1 Jared Moore 2008-10-05 05:25:32 UTC

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