[Issue 23500] std.traits.getUDAs not working properly for overloads

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 4 19:36:55 UTC 2023


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

--- Comment #3 from johanengelen at weka.io ---
Failing testcase with templates:

```
module test;
import std.traits;
@("gigi")
void fun() {}
@("mimi")
void fun(int) {}
void fun()(int, ulong) {}

void main()
{
    static foreach (t; __traits(getOverloads, test, "fun"))
        pragma(msg, hasUDA!(t, "gigi"));
}
```

--


More information about the Digitalmars-d-bugs mailing list