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 589603 - const cannot be used inside functions
const cannot be used inside functions
Status: RESOLVED DUPLICATE of bug 530623
Product: vala
Classification: Core
Component: Parser
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Jürg Billeter
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2009-07-24 12:38 UTC by pancake
Modified: 2009-07-27 15:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description pancake 2009-07-24 12:38:59 UTC
The following code fails to compile with a not very clean error.

void main() {
  const string hello = "world";
}
Comment 1 Jürg Billeter 2009-07-27 15:19:58 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 530623 ***