https://issues.dlang.org/show_bug.cgi?id=17643

          Issue ID: 17643
           Summary: std.traits.getSymbolsByUDA doesn't work with private
                    attributes
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: [email protected]
          Reporter: [email protected]

There's currently a publicly documented example about using getSymbolsByUDA
with private attributes. This only works because the example is in std.traits 

> dmd -c test.d
tuple(a)

---
import std.traits;

enum Attr;
struct A
{
    @Attr int a;
    @Attr private int c;
}

pragma(msg, getSymbolsByUDA!(A, Attr).stringof);
---

--

Reply via email to