[Issue 22981] Another forward reference bug involving a string mixin

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 4 07:51:16 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=22981

--- Comment #2 from Max Samukha <maxsamukha at gmail.com> ---

> However, it does if the template instance is aliased inside the type:

template E_()
{
        mixin ("enum E_ {", S.attr, "}");
}

struct S
{
    alias E = E_!();
    E e;
    enum attr = "a";
}

--


More information about the Digitalmars-d-bugs mailing list