Fix NCDFE on primitive iterators during boxing optimization

The real fix is in ProgressionIteratorBasicValue's constructor, other changes
are refactorings

 #KT-11153 Fixed
This commit is contained in:
Alexander Udalov
2016-02-22 16:53:55 +03:00
parent 3c35395cf7
commit c71c344b8a
4 changed files with 40 additions and 41 deletions
@@ -23,6 +23,11 @@ fun box() : String {
assertEquals(result7, 100)
assertEquals(result8, 100)
val result9 = (0..10).reduce { total, next -> total + next }
val result10 = (0L..10L).reduce { total, next -> total + next }
assertEquals(result9, 55)
assertEquals(result10, 55L)
return "OK"
}