http://d.puremagic.com/issues/show_bug.cgi?id=4321

           Summary: Passing local parameter to non-global template fails.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: yanik...@gmail.com
        Depends on: 3052


--- Comment #0 from ibrahim YANIKLAR <yanik...@gmail.com> 2010-06-15 06:50:17 
PDT ---
class C
{
    void f(int i)()
    {
    }

    void g()
    {
        foreach (i; Range!(1,10))
            f!(i)();
    }
}


Error: template instance cannot use local 'i' as parameter to non-global
template f(uint i)

I think it should work.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to