Issue example from PR:
struct TypeObj
{
alias This = typeof(this);
mixin template MixinTempl()
{
int value;
}
}
ref TypeObj Obj()
{
static TypeObj a;
return a;
}
void main()
{
mixin Obj.This.MixinTempl; // ok
mixin Obj.MixinTempl; // error: "MixinTempl!()" is not defined
}