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

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

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:
------- You are receiving this mail because: -------

Reply via email to