[Issue 18591] DMD should allow access to mixin template declarations
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 12 04:23:20 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18591
Simen Kjaeraas <simen.kjaras at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |simen.kjaras at gmail.com
--- Comment #2 from Simen Kjaeraas <simen.kjaras at gmail.com> ---
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
}
--
More information about the Digitalmars-d-bugs
mailing list