Counter loop in Java is transformed to less effective loop in Kotlin #KT-19337 Fixed

This commit is contained in:
Toshiaki Kameyama
2017-08-21 18:44:51 +09:00
committed by Dmitry Jemerov
parent eefc6ebcc9
commit a6c2135851
8 changed files with 19 additions and 12 deletions
@@ -4,7 +4,7 @@ internal class X {
internal class C {
fun foo(x: X) {
for (i in 0..x.length - 1) {
for (i in 0 until x.length) {
print(i)
}
}