Comment #0 by bearophile_hugs — 2010-10-11T18:13:29Z
Maybe this is a duplicated error report, but I haven't found it.
Current dmd 2.049 doesn't support nested functions with "auto" return value:
void main() {
auto foo() {
return 1;
}
}
DMD shows:
test.d(2): no identifier for declarator foo
test.d(2): semicolon expected, not '{'
But this is an useful feature to have because "auto" is becoming increasingly important as lazy Ranges often have a very complex type.
Comment #1 by galaxylang — 2010-10-16T22:56:02Z
i found it too,^-^
Comment #2 by bearophile_hugs — 2011-06-26T05:10:19Z
In DMD 2.053 the error messages are:
test.d(2): function declaration without return type. (Note that constructors are always named 'this')
test.d(2): no identifier for declarator foo()
Comment #3 by code — 2011-07-30T15:35:55Z
*** This issue has been marked as a duplicate of issue 4401 ***