[Issue 19056] New: UDAs can be added to imports but not retrieved
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 4 17:54:30 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19056
Issue ID: 19056
Summary: UDAs can be added to imports but not retrieved
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: elpenguino+D at gmail.com
It is currently legal to attach UDAs to imports, but there's no way to retrieve
them.
ie:
```
enum X;
@X import y = std.stdio;
pragma(msg, __traits(getAttributes, y));
```
I would expect the compiler to either print the attributes or emit an error,
not print an empty tuple.
--
More information about the Digitalmars-d-bugs
mailing list