Thread overview | |||||
---|---|---|---|---|---|
|
October 20, 2006 [Issue 444] New: Inside a foreach with delegates, void return does not compile | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=444 Summary: Inside a foreach with delegates, void return does not compile Product: D Version: 0.172 Platform: PC OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: kinaba@is.s.u-tokyo.ac.jp void main() { int nothing( int delegate(inout int) dg ) {return 0;} foreach(int x; ¬hing) return; } issues an error on dmd 0.172 (without line number info): cannot implicitly convert expression (0) of type int to void -- |
November 08, 2006 Re: [Issue 444] New: Inside a foreach with delegates, void return does not compile | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail Attachments: | d-bugmail@puremagic.com schrieb am 2006-10-20: > http://d.puremagic.com/issues/show_bug.cgi?id=444 > void main() > { > int nothing( int delegate(inout int) dg ) {return 0;} > foreach(int x; ¬hing) > return; > } > > issues an error on dmd 0.172 (without line number info): > cannot implicitly convert expression (0) of type int to void Added to DStress as http://dstress.kuehne.cn/compile/r/return_10_A.d Thomas |
November 25, 2006 [Issue 444] Inside a foreach with delegates, void return does not compile | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=444 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #2 from bugzilla@digitalmars.com 2006-11-25 03:53 ------- Fixed DMD 0.175 -- |
Copyright © 1999-2021 by the D Language Foundation