http://d.puremagic.com/issues/show_bug.cgi?id=6704
Summary: CommaExpression as an IfCondition Product: D Version: D2 Platform: Other OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: k.hanaz...@gmail.com --- Comment #0 from Kasumi Hanazuki <k.hanaz...@gmail.com> 2011-09-20 23:12:02 PDT --- The following code is valid according to the spec but rejected by dmd with the error: test.d(3): if (v; e) is deprecated, use if (auto v = e) Tested with DMD v2.055 ---- void main() { int a; if(a, true) { } } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------