www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18660] New: getSymbolsByUDA stops after encountering a function

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 puremagic.com
          Reporter: b2.temp 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.

--
Mar 25 2018