[Issue 7235] New: throwing away return value of pure function should	yield an error
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Jan  5 14:15:05 PST 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7235
           Summary: throwing away return value of pure function should
                    yield an error
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid, diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: mrmocool at gmx.de
--- Comment #0 from Trass3r <mrmocool at gmx.de> 2012-01-05 14:15:03 PST ---
pure int foo() {return 1;}
void main()
{
    foo();
}
Doesn't make any sense to me.
closely related to http://d.puremagic.com/issues/show_bug.cgi?id=3572
-- 
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