Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/diag11078.d

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag11078.d(19): Error: none of the overloads of `value` are callable using argument types `(double)`
5 fail_compilation/diag11078.d(12): Candidates are: `diag11078.S1.value()`
6 fail_compilation/diag11078.d(13): `diag11078.S1.value(int n)`
7 ---
8 */
9
10 struct S1
11 {
12 @property int value() { return 1; }
13 @property void value(int n) { }
14 }
15
16 void main()
17 {
18 S1 s1;
19 s1.value = 1.0;
20 }