https://issues.dlang.org/show_bug.cgi?id=23966
RazvanN <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from RazvanN <[email protected]> --- This is not a problem with the deprecation of __traits(getAttributes), but rather a problem of traits(getOverloads). This was simply exposed by the deprecation. If you use __traits(getLocation) instead of getAttributes, you will get the same behavior (except that an error is issued, not a deprecation): module test; @("gigi") void fun() {} @("mimi") void fun(int) {} @("didi") void fun()(int, ulong) {} void main() { //pragma(msg, __traits(getAttributes, fun)); pragma(msg, __traits(getOverloads, test, "fun")); static foreach (t; __traits(getOverloads, test, "fun")) pragma(msg, __traits(getLocation, t)); } --
