JVM_IR KT-47492 fix 'for' loop generation

This commit is contained in:
Dmitry Petrov
2021-06-28 16:21:39 +03:00
committed by TeamCityServer
parent 6993b86d3b
commit 768afc5ba4
11 changed files with 204 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
// DONT_TARGET_EXACT_BACKEND: WASM
// WITH_RUNTIME
fun p() {}
fun box(): String {
var sum = 1
for (i: Int? in sum downTo sum.toULong().countTrailingZeroBits())
p()
return "OK"
}