| 1 |
/* |
| 2 |
EXTRA_FILES: imports/fail5385.d |
| 3 |
TEST_OUTPUT: |
| 4 |
--- |
| 5 |
fail_compilation/diag5385.d(28): Error: no property `privX` for type `imports.fail5385.C` |
| 6 |
fail_compilation/imports/fail5385.d(3): class `C` defined here |
| 7 |
fail_compilation/diag5385.d(29): Error: no property `packX` for type `imports.fail5385.C` |
| 8 |
fail_compilation/imports/fail5385.d(3): class `C` defined here |
| 9 |
fail_compilation/diag5385.d(30): Error: no property `privX2` for type `imports.fail5385.C` |
| 10 |
fail_compilation/imports/fail5385.d(3): class `C` defined here |
| 11 |
fail_compilation/diag5385.d(31): Error: no property `packX2` for type `imports.fail5385.C` |
| 12 |
fail_compilation/imports/fail5385.d(3): class `C` defined here |
| 13 |
fail_compilation/diag5385.d(32): Error: no property `privX` for type `imports.fail5385.S` |
| 14 |
fail_compilation/imports/fail5385.d(11): struct `S` defined here |
| 15 |
fail_compilation/diag5385.d(33): Error: no property `packX` for type `imports.fail5385.S` |
| 16 |
fail_compilation/imports/fail5385.d(11): struct `S` defined here |
| 17 |
fail_compilation/diag5385.d(34): Error: no property `privX2` for type `imports.fail5385.S` |
| 18 |
fail_compilation/imports/fail5385.d(11): struct `S` defined here |
| 19 |
fail_compilation/diag5385.d(35): Error: no property `packX2` for type `imports.fail5385.S` |
| 20 |
fail_compilation/imports/fail5385.d(11): struct `S` defined here |
| 21 |
--- |
| 22 |
*/ |
| 23 |
|
| 24 |
import imports.fail5385; |
| 25 |
|
| 26 |
void main() |
| 27 |
{ |
| 28 |
C.privX = 1; |
| 29 |
C.packX = 1; |
| 30 |
C.privX2 = 1; |
| 31 |
C.packX2 = 1; |
| 32 |
S.privX = 1; |
| 33 |
S.packX = 1; |
| 34 |
S.privX2 = 1; |
| 35 |
S.packX2 = 1; |
| 36 |
} |