1 // EXTRA_FILES: imports/imp1.d imports/imp2.d
5 fail_compilation/checkimports2.d(25): Error: no property `X` for type `checkimports2.B`, did you mean `imports.imp2.X`?
6 fail_compilation/checkimports2.d(25): while evaluating: `static assert((B).X == 0)`
7 fail_compilation/checkimports2.d(26): Error: no property `Y` for type `checkimports2.B`, did you mean `imports.imp2.Y`?
8 fail_compilation/checkimports2.d(26): while evaluating: `static assert((B).Y == 2)`
19 static assert(X
== 0); // imp2.X --> .X
25 static assert(B
.X
== 0); // imp2.X --> error
26 static assert(B
.Y
== 2); // imp2.Y --> error
28 static assert(X
== 0); // imp2.X --> .X
29 static assert(Y
== 1); // imp2.Y --> imp1.Y