blob: 7b79cf0666fc4fee99c1b1d4e75f2b1ac07d0ed0 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/b17285.d(14): Error: type `ONE` has no value
fail_compilation/b17285.d(14): Error: type `TWO` has no value
fail_compilation/b17285.d(14): Error: cannot implicitly convert expression `ONE` of type `b17285.ONE` to `int`
---
*/
class ONE {}
enum TWO;
void foo() {
foreach(key; [ONE, TWO, 1]) {}
}