http://d.puremagic.com/issues/show_bug.cgi?id=10405

           Summary: redundant "expression has no effect" error when
                    returning non-void in void function
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Henning Pohl <[email protected]> 2013-06-18 08:31:38 
PDT ---
void main() {
    return 10;
}

-------
main.d(2): Error: long has no effect in expression (10)
main.d(2): Error: cannot return non-void from void function
-------

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

Reply via email to