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 601667 - Lambda can return nothing when it should return something
Lambda can return nothing when it should return something
Status: RESOLVED DUPLICATE of bug 606478
Product: vala
Classification: Core
Component: Semantic Analyzer
0.7.x
Other Linux
: Normal minor
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2009-11-12 10:32 UTC by Evan Nemerson
Modified: 2010-01-31 21:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test case (258 bytes, application/octet-stream)
2009-11-12 10:32 UTC, Evan Nemerson
Details

Description Evan Nemerson 2009-11-12 10:32:36 UTC
Created attachment 147553 [details]
Test case

A function which takes a delegate which returns a value can be called with a lambda which does not return a value (the attached test case should be clearer than that description). Annoyingly, gcc will compile the result without complaint.
Comment 1 Evan Nemerson 2010-01-31 21:10:09 UTC

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