[Issue 14964] __traits(isAlias, foo)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 30 06:06:51 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=14964
--- Comment #8 from Basile-z <b2.temp at gmx.com> ---
another very typical case where the fact that allMembers trait doesn't filter
out aliases is when using an alias to deprecate the name of a symbol.
---
//library...
enum Iter;
struct Foo
{
@Iter Object[] items;
/// will be removed on 01-01-2021
deprecated alias elements = items;
}
//app...
void main()
{
import std.traits;
alias Iterable = getSymbolsByUDA!(Foo, Iter);
}
---
--
More information about the Digitalmars-d-bugs
mailing list