mirror of
https://github.com/dlang/phobos.git
synced 2025-05-05 01:20:40 +03:00
Revert "Merge pull request #4747 from MartinNowak/fix15907"
This reverts commitd10780f195
, reversing changes made to01eb06bb38
.
This commit is contained in:
parent
d10780f195
commit
a2c0a90160
4 changed files with 5 additions and 38 deletions
|
@ -14,13 +14,3 @@ struct HasPrivateMembers
|
|||
@Attr private int c;
|
||||
private int d;
|
||||
}
|
||||
|
||||
// If getSymbolsByUDA is mixed into the same scope it also returns private members
|
||||
unittest
|
||||
{
|
||||
import std.traits : getSymbolsByUDA, hasUDA;
|
||||
mixin getSymbolsByUDA!(HasPrivateMembers, Attr) symbols;
|
||||
static assert(symbols.getSymbolsByUDA.length == 2);
|
||||
static assert(hasUDA!(symbols.getSymbolsByUDA[0], Attr));
|
||||
static assert(hasUDA!(symbols.getSymbolsByUDA[1], Attr));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue