Summary: auto functions cannot be inner functions
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Philippe Sigaud <> 2010-06-28 
16:07:11 CEST ---
It seems auto function cannot be inner functions:

void foo()
    string bar(string s) { return s;} // works
    auto   baz(string s) { return s;} // error!


main.d|13|found 's' when expecting ')'|
main.d|13|semicolon expected, not ')'|
main.d|13|found ')' instead of statement|

Reading the docs, nothing tells me auto functions cannot be used as inner
function. So either it's a bug or you should update the docs.

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

Reply via email to