1 // https://issues.dlang.org/show_bug.cgi?id=21939
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/test21939.d(9): Error: invalid `foreach` aggregate `Object`, define `opApply()`, range primitives, or use `.tupleof`
6 ---
7 */
8 
foreach(a;Object)9 static foreach (a; Object) {}
10