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: nob...@puremagic.com
        ReportedBy: wfunct...@hotmail.com


--- Comment #0 from wfunct...@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: -------

Reply via email to