[Issue 4321] New: Passing local parameter to non-global template fails.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jun 15 06:50:17 PDT 2010
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: nobody at puremagic.com
ReportedBy: yanikibo at gmail.com
Depends on: 3052
--- Comment #0 from ibrahim YANIKLAR <yanikibo at 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: -------
More information about the Digitalmars-d-bugs
mailing list