[Issue 18660] New: getSymbolsByUDA stops after encountering a function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 25 10:00:45 UTC 2018


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

          Issue ID: 18660
           Summary: getSymbolsByUDA stops after encountering a function
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: b2.temp at gmx.com

test case:

```
unittest
{
    import std.traits;
    struct UDA {}

    static struct Foo
    {
        static @UDA bool b;
        void brickWall(){}
        static @UDA bool c;
    }

    static assert(getSymbolsByUDA!(Foo, UDA).stringof == "tuple(b, c)");
}
```

comment the `brickWall` declaration then the assertion is okay.

--


More information about the Digitalmars-d-bugs mailing list