MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / diag11078.d
blob334ce16651fb6a2164ff9a1d453b32aa4f2d85f2
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 */
10 struct S1
12 @property int value() { return 1; }
13 @property void value(int n) { }
16 void main()
18 S1 s1;
19 s1.value = 1.0;