On Friday, 16 February 2018 at 09:26:47 UTC, Piotr Mitana wrote:
Hello,The code below: ================ import std.traits; enum Attr; class MyClass { private @Attr int a;static assert(getSymbolsByUDA!(typeof(this), MyClass).length == 1);} ================does not compile as static assertion fails. Making the filed a public makes it compile properly. Should I file a bug or is by design?
It's definitely a bug!