[Issue 3431] New: Automatic deduction of anonymous delegate signatures
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 21 05:19:55 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3431
Summary: Automatic deduction of anonymous delegate signatures
Product: D
Version: 2.034
Platform: x86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: pelle.mansson at gmail.com
--- Comment #0 from Pelle Månsson <pelle.mansson at gmail.com> 2009-10-21 05:19:54 PDT ---
Anonymous delegates cannot use automatic type deduction. For example:
int f(int delegate(int) g) {
return g(13);
}
void main() {
f((auto x) { return x+13; });
}
This fails to compile. Omitting the 'auto' also fails to compile.
--
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