https://issues.dlang.org/show_bug.cgi?id=21939
Issue ID: 21939 Summary: Duplicate error messages for wrong aggregate in 'static foreach' Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: minor Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: boris...@gmail.com test: --- static foreach (a; Object) {} --- output: test.d(1): Error: invalid `foreach` aggregate `Object`, define `opApply()`, range primitives, or use `.tupleof` test.d(1): Error: invalid `foreach` aggregate `Object`, define `opApply()`, range primitives, or use `.tupleof` --