[Issue 6704] New: CommaExpression as an IfCondition

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 20 23:12:29 PDT 2011


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: nobody at puremagic.com
        ReportedBy: k.hanazuki at gmail.com


--- Comment #0 from Kasumi Hanazuki <k.hanazuki at 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: -------


More information about the Digitalmars-d-bugs mailing list