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 673902 - variable declared in foreach() is not visible in a closure
variable declared in foreach() is not visible in a closure
Status: RESOLVED DUPLICATE of bug 628336
Product: vala
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2012-04-11 11:52 UTC by Stefano Facchini
Modified: 2012-04-11 13:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test program (524 bytes, text/x-vala)
2012-04-11 11:52 UTC, Stefano Facchini
Details

Description Stefano Facchini 2012-04-11 11:52:29 UTC
Created attachment 211826 [details]
Test program

The attached test program shows the issue. The error during compilation is:

/home/stefano/dev/test.vala.c: In function ‘_vala_main’:
/home/stefano/dev/test.vala.c:564:4: error: ‘o’ undeclared (first use in this function)

which refers to line 24 in vala code
Comment 1 Luca Bruno 2012-04-11 13:16:43 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 bug 628336 ***