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: nob...@puremagic.com ReportedBy: bearophile_h...@eml.cc --- Comment #0 from bearophile_h...@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: -------