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: [email protected]
ReportedBy: [email protected]
Depends on: 3052
--- Comment #0 from ibrahim YANIKLAR <[email protected]> 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: -------