[Issue 1514] mixin doesn't make the template to "function template"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 17 23:00:43 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1514
------- Comment #1 from davidl at 126.com 2007-09-18 01:00 -------
simplified case
abc.d:
import std.stdio;
template mytemp(T)
{
mixin subtemp!(T);
template subtemp(U)
{
void mytemp(T v)
{
writefln(v);
}
}
}
void main()
{
mytemp(3);
}
abc.d(3): template abc.mytemp(T) is not a function template
abc.d(17): template abc.mytemp(T) cannot deduce template function from argument
types (int)
--
More information about the Digitalmars-d-bugs
mailing list