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 */
9 
bb(T,U)10 string bb(T, U)(T x, U y)
11 {
12     return "3";
13 }
14 
15 enum E1
16 {
17     foo = bb(bar, baz),
18     bar = 1,
19     baz = "2",
20 }
21 
22 enum E2
23 {
24     foo = bb(bar, baz),
25     bar = 1,
26     baz = 2
27 }
28