mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
27 lines
525 B
D
27 lines
525 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail11746.d(18): Error: cannot implicitly convert expression `1` of type `int` to `string`
|
|
fail_compilation/fail11746.d(25): Error: cannot implicitly convert expression `1` of type `int` to `string`
|
|
fail_compilation/fail11746.d(26): Error: cannot implicitly convert expression `2` of type `int` to `string`
|
|
---
|
|
*/
|
|
|
|
string bb(T, U)(T x, U y)
|
|
{
|
|
return "3";
|
|
}
|
|
|
|
enum E1
|
|
{
|
|
foo = bb(bar, baz),
|
|
bar = 1,
|
|
baz = "2",
|
|
}
|
|
|
|
enum E2
|
|
{
|
|
foo = bb(bar, baz),
|
|
bar = 1,
|
|
baz = 2
|
|
}
|