1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail303.d(19): Error: double /= cdouble is undefined. Did you mean double /= cdouble.re ?
5 fail_compilation/fail303.d(20): Error: ireal *= ireal is an undefined operation
6 fail_compilation/fail303.d(21): Error: ireal *= creal is undefined. Did you mean ireal *= creal.im ?
7 fail_compilation/fail303.d(22): Error: ireal %= creal is undefined. Did you mean ireal %= creal.im ?
8 fail_compilation/fail303.d(23): Error: ireal += real is undefined (result is complex)
9 fail_compilation/fail303.d(24): Error: ireal -= creal is undefined (result is complex)
10 fail_compilation/fail303.d(25): Error: double -= idouble is undefined (result is complex)
11 ---
12 */
13 
14 
main()15 void main()
16 {
17     ireal x = 3.0i;
18     double y = 3;
19     y /= 2.0 + 6i;
20     x *= 7.0i;
21     x *= 3.0i + 2;
22     x %= (2 + 6.0i);
23     x += 2.0;
24     x -= 1 + 4i;
25     y -= 3.0i;
26 }
27