Should not compile, but error message should not refer to TOK41. Unimportant.
========
varbug2.d(10): mixin mixin peacock!(3);
peacock is not a template
varbug2.d(11): mixin 'mixin peacock!(3);
' is not a variable
varbug2.d(11): TOK41 has no effect in expression (mixin peacock!(3);
)
varbug2.d(20): template instance varbug2.VarArgs!(Dog).VarArgs!(int) error insta
ntiating
========
template Rubbish(A)
{
const int Rubbish = 3;
}
template VarArgs(alias peacock) {
template VarArgs(A) {
void VarArgs(A a) {
mixin peacock!(Rubbish!(A)) zz;
zz;
}
}
}
void Dog() {}
void main()
{
VarArgs!(Dog)(3);
}