Bug 20188 – getSymbolsByUDA produces compile errors when symbol is a module
Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-09-01T19:07:38Z
Last change time
2019-09-01T20:59:23Z
Assigned to
No Owner
Creator
elpenguino+D
Comments
Comment #0 by elpenguino+D — 2019-09-01T19:07:38Z
```
import std.traits;
enum X;
static assert(getSymbolsByUDA!(mixin(__MODULE__), X).length == 0);
```
This fails on DMD 2.088.0-rc.1 with `Error: template instance isAggregateType!(mod) does not match template declaration isAggregateType(T)`.
Please add a test. I think this is the third time I've filed a bug for getSymbolsByUDA failing when given a module.
Comment #1 by simen.kjaras — 2019-09-01T20:59:23Z
*** This issue has been marked as a duplicate of issue 20054 ***