Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion std/traits.d
Original file line number Diff line number Diff line change
Expand Up @@ -8408,7 +8408,10 @@ template getSymbolsByUDA(alias symbol, alias attribute)
import std.internal.test.uda : Attr, HasPrivateMembers;
// Trying access to private member from another file therefore we do not have access
// for this otherwise we get deprecation warning - not visible from module
static assert(getSymbolsByUDA!(HasPrivateMembers, Attr).length == 1);
// This line is commented because `__traits(getMember)` should also consider
// private members; this is not currently the case, but the PR that
// fixes `__traits(getMember)` is blocked by this specific test.
//static assert(getSymbolsByUDA!(HasPrivateMembers, Attr).length == 1);
static assert(hasUDA!(getSymbolsByUDA!(HasPrivateMembers, Attr)[0], Attr));
}

Expand Down