| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/diag15186.d(14): Error: use `.` for member lookup, not `::` |
| 5 |
fail_compilation/diag15186.d(15): Error: use `.` for member lookup, not `->` |
| 6 |
--- |
| 7 |
*/ |
| 8 |
|
| 9 |
void main() |
| 10 |
{ |
| 11 |
struct S { static int x; int y; } |
| 12 |
S* s; |
| 13 |
|
| 14 |
S::x = 1; |
| 15 |
s->y = 2; |
| 16 |
} |