[Issue 8204] New: Alias causes error: "auto can only be used for template function parameters"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jun 6 22:57:56 PDT 2012
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 at puremagic.com
ReportedBy: wfunction at hotmail.com
--- Comment #0 from wfunction at 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: -------
More information about the Digitalmars-d-bugs
mailing list