[Issue 7218] New: Nested function with contract is rejected
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Jan  4 08:26:01 PST 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7218
           Summary: Nested function with contract is rejected
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2012-01-04 08:26:00 PST ---
This code can't compile.
void main()
{
  size_t foo()   in{}   out{} body{ return 0; } // OK
  size_t bar() in{} /*out{}*/ body{ return 0; } // OK
  size_t hoo() /*in{}*/ out{} body{ return 0; } // NG1
  size_t baz() /*in{} out{}*/ body{ return 0; } // NG2
}
-- 
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