Consider the following program: ---- main.d -------- import std.traits: getSymbolsByUDA; struct MyUDA { } class A { @MyUDA int a; } class B : A { @MyUDA int b; } void main() { alias G = getSymbolsByUDA!(B, MyUDA); } -------------------- That yield the error: Error: template instance `AliasSeq!(b, a)` `AliasSeq!(b, a)` is nested in both `B` and `A` Sounds like a bug in getSymbolsByUDA? How to workaround that?
Works since 2.099 according to run.dlang.io