mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
22 lines
300 B
D
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
|
|
}
|