[FE] Use indexed loop to prevent CME in incorporation

#KT-60225 Fixed
This commit is contained in:
Kirill Rakhman
2023-12-14 12:59:54 +01:00
committed by Space Team
parent 3e41faf91f
commit 3bfcf3090c
8 changed files with 61 additions and 3 deletions
@@ -0,0 +1,10 @@
// FIR_IDENTICAL
// ISSUE: KT-60225
class Klass<T: Klass<T>>
fun <T: Klass<T>> Klass<T>.foo() {}
fun main() {
Klass().foo()
}