[Issue 19084] Symbol not resolved in string mixin in template struct

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 24 08:32:52 UTC 2018


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

--- Comment #2 from anonymous4 <dfj1esp02 at sneakemail.com> ---
You can reference the symbol directly:

import std.format : format;

struct Bar(T) {
    mixin("T foo;");
}

unittest {
    struct Foo {
    }

    Bar!Foo bar;
}

--


More information about the Digitalmars-d-bugs mailing list