d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / diag8894.d
blobe8e0c74cc32e005bb8df549aa1e87e582ca8daed
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag8894.d(20): Error: no property `x` for `f` of type `diag8894.Foo`
5 fail_compilation/diag8894.d(15): struct `Foo` defined here
6 fail_compilation/diag8894.d(21): Error: no property `y` for `f` of type `diag8894.Foo`
7 fail_compilation/diag8894.d(15): struct `Foo` defined here
8 fail_compilation/diag8894.d(22): Error: no property `x` for `f` of type `diag8894.Foo`
9 fail_compilation/diag8894.d(15): struct `Foo` defined here
10 fail_compilation/diag8894.d(23): Error: no property `x` for `f` of type `diag8894.Foo`
11 fail_compilation/diag8894.d(15): struct `Foo` defined here
12 ---
15 struct Foo { }
17 void main()
19 Foo f;
20 f.x; // UFCS getter1
21 f.y!int; // UFCS getter2
22 f.x = 10; // UFCS setter1
23 f.x!int = 10; // UFCS setter2