1 // REQUIRED_ARGS: -de 2 // PERMUTE_ARGS: 3 import imports.imp15907; 4 5 struct S 6 { 7 private int a; 8 } 9 test()10void test() 11 { 12 process(S()); 13 } 14 15 static assert(allMembers!S == ["a"]); 16 enum sz = __traits(getMember, imports.imp15907, "PrivateStruct").sizeof; 17 static assert(__traits(hasMember, imports.imp15907, "privateVar")); 18 typeof(__traits(getMember, PublicStruct, "S").init) s; 19