AliasSeq in UDA
Sebastiaan Koppe
mail at skoppe.eu
Sun Mar 10 13:20:12 UTC 2019
The compiler complains about `cannot form tuple of tuples`
whenever I try to put an AliasSeq in a UDA and try to use it.
You would expect the compiler to expand it. Is this a bug?
---
import std.meta;
enum A; enum B;
@AliasSeq!(A,B) // <-- Error: cannot form tuple of tuples
struct Foo {}
pragma(msg, __traits(getAttributes, Foo)); // <- must be present
(error happens only when queried)
void main() {}
---
link to run.dlang.io:
https://run.dlang.io/gist/cd5cd94d8ce5327e8a7d5ad77f1d15b8
More information about the Digitalmars-d-learn
mailing list