Summary: Auto Return Doesn't Work With Nested Functions
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from David Simcha <> 2011-11-07 08:38:26 PST ---
This may technically be an enhancement request, but it seems like a massive,
glaring inconsistency for no good reason, so I consider it a bug.

void main() {
    auto foo() {
        return 3;

test.d(2): function declaration without return type. (Note that constructors
are always named 'this')
test.d(2): no identifier for declarator foo()

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to