1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag13281.d(20): Error: cannot implicitly convert expression `123` of type `int` to `string`
5 fail_compilation/diag13281.d(21): Error: cannot implicitly convert expression `123u` of type `uint` to `string`
6 fail_compilation/diag13281.d(22): Error: cannot implicitly convert expression `123L` of type `long` to `string`
7 fail_compilation/diag13281.d(23): Error: cannot implicitly convert expression `123LU` of type `ulong` to `string`
8 fail_compilation/diag13281.d(24): Error: cannot implicitly convert expression `123.4` of type `double` to `int`
9 fail_compilation/diag13281.d(25): Error: cannot implicitly convert expression `123.4F` of type `float` to `int`
10 fail_compilation/diag13281.d(26): Error: cannot implicitly convert expression `123.4L` of type `real` to `int`
11 fail_compilation/diag13281.d(27): Error: cannot implicitly convert expression `123.4i` of type `idouble` to `int`
12 fail_compilation/diag13281.d(28): Error: cannot implicitly convert expression `123.4Fi` of type `ifloat` to `int`
13 fail_compilation/diag13281.d(29): Error: cannot implicitly convert expression `123.4Li` of type `ireal` to `int`
14 fail_compilation/diag13281.d(30): Error: cannot implicitly convert expression `(123.4+5.6i)` of type `cdouble` to `int`
15 fail_compilation/diag13281.d(31): Error: cannot implicitly convert expression `(123.4F+5.6Fi)` of type `cfloat` to `int`
16 fail_compilation/diag13281.d(32): Error: cannot implicitly convert expression `(123.4L+5.6Li)` of type `creal` to `int`
17 ---
18 */
19 
20 string x1 = 123;
21 string x2 = 123u;
22 string x3 = 123L;
23 string x4 = 123uL;
24 int y1 = 123.4;
25 int y2 = 123.4f;
26 int y3 = 123.4L;
27 int y4 = 123.4i;
28 int y5 = 123.4fi;
29 int y6 = 123.4Li;
30 int y7 = 123.4 +5.6i;
31 int y8 = 123.4f+5.6fi;
32 int y9 = 123.4L+5.6Li;
33