digitalmars.D.bugs - [Issue 8204] New: Alias causes error: "auto can only be used for template function parameters"
- d-bugmail puremagic.com (22/22) Jun 06 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8204
http://d.puremagic.com/issues/show_bug.cgi?id=8204 Summary: Alias causes error: "auto can only be used for template function parameters" Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: wfunction hotmail.com --- Comment #0 from wfunction hotmail.com 2012-06-06 22:59:58 PDT --- void foo(T)(ref auto T v) { } alias foo!int bar; // Error: auto can only be used for template function parameters While I understand this may be 'correct' in some sense, it makes templates a lot more difficult to use. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 06 2012