Comment #0 by andrej.mitrovich — 2014-04-26T09:07:14Z
-----
import std.traits;
struct S(T)
{
}
void main()
{
// compiles, but makes no sense
pragma(msg, TemplateArgsOf!(S!int, S, float));
}
-----
I'm not sure whether this could also be a compiler bug. I'll CC kenji. The following is the reduced test-case:
-----
alias TemplateArgsOf(alias T : Base!Args, alias Base, Args...) = Args;
struct S(T) { }
void main()
{
pragma(msg, TemplateArgsOf!(S!int, S, float)); // prints 'int'
}
-----