Bug 18660 – getSymbolsByUDA stops after encountering a function

Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-03-25T10:00:45Z
Last change time
2018-03-25T16:31:27Z
Assigned to
No Owner
Creator
Basile-z

Comments

Comment #0 by b2.temp — 2018-03-25T10:00:45Z
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.
Comment #1 by greensunny12 — 2018-03-25T10:03:44Z
That's a regression. It used to work until 2.079: https://run.dlang.io/is/wqC9ZT (the all compiler features hasn't been updated to 2.079 yet)
Comment #2 by simen.kjaras — 2018-03-25T11:42:30Z
*** This issue has been marked as a duplicate of issue 18624 ***
Comment #3 by b2.temp — 2018-03-25T12:31:47Z
i had tested with DMD ~master. So it's no yet fixed.
Comment #4 by b2.temp — 2018-03-25T12:45:12Z
Comment #5 by b2.temp — 2018-03-25T13:02:31Z
it's resolved in stable. *** This issue has been marked as a duplicate of issue 18624 ***
Comment #6 by greensunny12 — 2018-03-25T16:31:27Z
> it's resolved in stable. https://github.com/dlang/phobos/pull/6342 Also note that DMD nightlies are currently broken and haven't been built since the end of February (in case you tried this with run.dlang.io) In any case I hope that 2.079.1 will be released soon.