[Issue 18555] New: getSymbolsByUDA has strange behaviour on modules
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 5 04:10:35 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18555
Issue ID: 18555
Summary: getSymbolsByUDA has strange behaviour on modules
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: regression
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: elpenguino+D at gmail.com
import std.traits;
enum Something;
@Something
void foo() {}
@Something
void foo2() {}
static assert(getSymbolsByUDA!(mixin(__MODULE__), Something).length == 2);
This worked up until DMD 2.079. Now it returns no symbols instead of the
expected 2.
In some cases it appears to return a single symbol (out of several) but I could
not determine why, nor manage to reduce an example.
--
More information about the Digitalmars-d-bugs
mailing list