Bug or intentional error?

Daniel N via Digitalmars-d digitalmars-d at puremagic.com
Tue Jul 7 13:08:09 PDT 2015


Error: this is not in a class or struct scope

mixin template NodeT1(T = typeof(this))
{
}
mixin template NodeT2()
{
   alias T = typeof(this);
}

struct Node
{
   mixin NodeT1; // fail
   mixin NodeT2; // pass
}



More information about the Digitalmars-d mailing list