www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12490] New: No "Error: , has no effect" Error

https://d.puremagic.com/issues/show_bug.cgi?id=12490

           Summary: No "Error: , has no effect" Error
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: monarchdodra gmail.com



//----
    5, someFun();
//----
    1 + 2, someFun();
//----

I think these should trigger an error. The LHS clearly does nothing, and the
result is not stored anywhere.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 29 2014