D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 20188 - getSymbolsByUDA produces compile errors when symbol is a module
Summary: getSymbolsByUDA produces compile errors when symbol is a module
Status: RESOLVED DUPLICATE of issue 20054
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P1 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-01 19:07 UTC by elpenguino+D
Modified: 2019-09-01 20:59 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description elpenguino+D 2019-09-01 19:07:38 UTC
```
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 Simen Kjaeraas 2019-09-01 20:59:23 UTC

*** This issue has been marked as a duplicate of issue 20054 ***