[Issue 5045] New: auto type inference for nest function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 11 18:13:58 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5045
Summary: auto type inference for nest function
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2010-10-11 18:13:29 PDT ---
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.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list