June 17 [Issue 24607] __traits(isDeprecated, ...) not working on a member | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24607 Nick Treleaven <nick@geany.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nick@geany.org Severity|enhancement |normal --- Comment #1 from Nick Treleaven <nick@geany.org> --- > pragma(msg, __traits(isDeprecated, A, "foo"))); The docs say it takes only one argument (like other trait docs), though actually the result is true if both A and "foo" are deprecated. https://dlang.org/spec/traits.html#isDeprecated > Should support checking on member > pragma(msg, __traits(isDeprecated, A.bar3)); That is actually the correct syntax, but the result is false when it should be true. (I am adding a member symbol example in this pull https://github.com/dlang/dlang.org/pull/3851). -- |
June 17 [Issue 24607] __traits(isDeprecated, ...) result incorrect on an alias member | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24607 Nick Treleaven <nick@geany.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|__traits(isDeprecated, ...) |__traits(isDeprecated, ...) | not working on a member |result incorrect on an | |alias member -- |
Copyright © 1999-2021 by the D Language Foundation