MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail11746.d
blob6ca07fc2d1e8dd1ad76edd4e28839a6b293a5b6b
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail11746.d(18): Error: cannot implicitly convert expression `1` of type `int` to `string`
5 fail_compilation/fail11746.d(25): Error: cannot implicitly convert expression `1` of type `int` to `string`
6 fail_compilation/fail11746.d(26): Error: cannot implicitly convert expression `2` of type `int` to `string`
7 ---
8 */
10 string bb(T, U)(T x, U y)
12 return "3";
15 enum E1
17 foo = bb(bar, baz),
18 bar = 1,
19 baz = "2",
22 enum E2
24 foo = bb(bar, baz),
25 bar = 1,
26 baz = 2