diff --git a/compiler/testData/codegen/box/functions/localFunctions/kt4989.kt b/compiler/testData/codegen/box/functions/localFunctions/kt4989.kt index 90ed88dce00..d42b8a0b6b0 100644 --- a/compiler/testData/codegen/box/functions/localFunctions/kt4989.kt +++ b/compiler/testData/codegen/box/functions/localFunctions/kt4989.kt @@ -13,12 +13,16 @@ fun box(): String { var counter: Int? = null fun path(metaRunnerId: String) = counter != 2 + var i = 0 while (true) { val name = projectId + "_" + it.id + (if (counter == null) "" else "_$counter") if (!path(name)) { return name } counter++ + + i++ + if (i > 2) return "Infinity loop: $counter" } } val X = selectMetaRunnerId()