]>
Commit | Line | Data |
---|---|---|
b4c522fa IB |
1 | /* |
2 | TEST_OUTPUT: | |
3 | --- | |
c8dfa79c IB |
4 | fail_compilation/diag8894.d(16): Error: no property `x` for `f` of type `diag8894.Foo` |
5 | fail_compilation/diag8894.d(17): Error: no property `y` for `f` of type `diag8894.Foo` | |
6 | fail_compilation/diag8894.d(18): Error: no property `x` for `f` of type `diag8894.Foo` | |
7 | fail_compilation/diag8894.d(19): Error: no property `x` for `f` of type `diag8894.Foo` | |
b4c522fa IB |
8 | --- |
9 | */ | |
10 | ||
11 | struct Foo { } | |
12 | ||
13 | void main() | |
14 | { | |
15 | Foo f; | |
16 | f.x; // UFCS getter1 | |
17 | f.y!int; // UFCS getter2 | |
18 | f.x = 10; // UFCS setter1 | |
19 | f.x!int = 10; // UFCS setter2 | |
20 | } |