dmd/compiler/test/compilable/mixintempl.d
2022-07-09 18:53:07 +02:00

22 lines
300 B
D

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