https://issues.dlang.org/show_bug.cgi?id=19084
Jonathan Marler changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://issues.dlang.org/show_bug.cgi?id=19084
--- Comment #3 from Jonathan Marler ---
struct Bar(T) {
mixin("T foo;");
}
T in this case is not a "symbol name string", it is an alias to a symbol. But
don't be confused, you can't actually create T with an alias, meaning `alias T
= Foo`
https://issues.dlang.org/show_bug.cgi?id=19084
--- Comment #2 from anonymous4 ---
You can reference the symbol directly:
import std.format : format;
struct Bar(T) {
mixin("T foo;");
}
unittest {
struct Foo {
}
Bar!Foo bar;
}
--
https://issues.dlang.org/show_bug.cgi?id=19084
Jonathan Marler changed:
What|Removed |Added
CC||johnnymar...@gmail.com
--- Comment #1