]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/gdc.test/fail_compilation/diag8894.d
d: Merge upstream dmd d579c467c1, phobos 88aa69b14.
[gcc.git] / gcc / testsuite / gdc.test / fail_compilation / diag8894.d
CommitLineData
b4c522fa
IB
1/*
2TEST_OUTPUT:
3---
c8dfa79c
IB
4fail_compilation/diag8894.d(16): Error: no property `x` for `f` of type `diag8894.Foo`
5fail_compilation/diag8894.d(17): Error: no property `y` for `f` of type `diag8894.Foo`
6fail_compilation/diag8894.d(18): Error: no property `x` for `f` of type `diag8894.Foo`
7fail_compilation/diag8894.d(19): Error: no property `x` for `f` of type `diag8894.Foo`
b4c522fa
IB
8---
9*/
10
11struct Foo { }
12
13void 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}
This page took 2.848312 seconds and 5 git commands to generate.