getSymbolsByUDA does not take private symbols under consideration. Should I file a bug?

Piotr Mitana the.mail.of.mi2 at gmail.com
Fri Feb 16 09:26:47 UTC 2018


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?


More information about the Digitalmars-d-learn mailing list