digitalmars.D.bugs - [Issue 18660] New: getSymbolsByUDA stops after encountering a function
- d-bugmail puremagic.com (30/30) Mar 25 2018 https://issues.dlang.org/show_bug.cgi?id=18660
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