[Issue 20188] New: getSymbolsByUDA produces compile errors when symbol is a module

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 1 19:07:38 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=20188

          Issue ID: 20188
           Summary: getSymbolsByUDA produces compile errors when symbol is
                    a module
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: elpenguino+D at gmail.com

```
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.

--


More information about the Digitalmars-d-bugs mailing list