www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20188] New: getSymbolsByUDA produces compile errors when

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 puremagic.com
          Reporter: elpenguino+D 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.

--
Sep 01 2019