www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20907] New: [DIP1000] Unittest fails when duplicated

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.

--
Jun 07 2020