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

Reply via email to