mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
16 lines
275 B
D
16 lines
275 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/diag15186.d(14): Error: use `.` for member lookup, not `::`
|
|
fail_compilation/diag15186.d(15): Error: use `.` for member lookup, not `->`
|
|
---
|
|
*/
|
|
|
|
void main()
|
|
{
|
|
struct S { static int x; int y; }
|
|
S* s;
|
|
|
|
S::x = 1;
|
|
s->y = 2;
|
|
}
|