June 08, 2020
https://issues.dlang.org/show_bug.cgi?id=20907

          Issue ID: 20907
           Summary: [DIP1000] Unittest fails when duplicated
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: qs.il.paperinik@gmail.com

Example code: https://run.dlang.io/is/upvQy9

Change the upper of the static foreach before the unittest to 1 will make it compile.

Compiles fine without -dip1000 flag.

--