KT-47823 IR.JVM Fix handling of for loop ranges with inline types and break/continue/return

This commit is contained in:
Pavel Mikhailovskii
2022-06-08 15:55:11 +02:00
committed by teamcity
parent ecb3cc193c
commit bcd8a28d4c
10 changed files with 63 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
// WITH_STDLIB
fun box(): String {
for (i in 1 .. 2) {
for (j in 1u .. break) {}
}
for (i in 1 .. 2) {
for (j in 1u .. continue) {}
}
for (i in 1u .. return "OK") { }
}