[Issue 4785] New: auto return of a function with in contract

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 1 10:38:55 PDT 2010


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

           Summary: auto return of a function with in contract
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2010-09-01 10:38:41 PDT ---
auto foo()
    in {}
    body { return 0; }
void main() {
    foo();
}


DMD 2.048 prints:
test.d(2): no identifier for declarator foo
test.d(2): semicolon expected, not 'in'
test.d(2): Declaration expected, not 'in'
test.d(3): unrecognized declaration

-- 
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