blob: b39c00f964f71dde12bced46b76423fbf8267109 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/test8509.d(13): Error: cannot implicitly convert expression `"hello world"` of type `string` to `E`
fail_compilation/test8509.d(14): Error: cannot implicitly convert expression `"hello world"` of type `string` to `E`
---
*/
module test8509;
enum E : string { a = "hello", b = "world" }
void main()
{
E e1 = E.a ~ " world";
E e2 = "hello " ~ E.b;
}