www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21854] New: live breaks foreach over integers

https://issues.dlang.org/show_bug.cgi?id=21854

          Issue ID: 21854
           Summary:  live breaks foreach over integers
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: maxhaton gmail.com

 live void glorifiedNop()
{
    foreach(int tmp; 0..10)
    {

    }
}

run with -preview=dip1021

https://run.dlang.io/is/zGpg3C

--
Apr 23