1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/b17285.d(14): Error: type `ONE` has no value
5 fail_compilation/b17285.d(14): Error: type `TWO` has no value
6 fail_compilation/b17285.d(14): Error: cannot implicitly convert expression `ONE` of type `b17285.ONE` to `int`
7 ---
8 */
9 
10 class ONE {}
11 enum TWO;
12 
foo()13 void foo() {
14     foreach(key; [ONE, TWO, 1]) {}
15 }
16