[Test] Ensure FIR doesn't fail on recursive private-to-this case

^KT-55446
This commit is contained in:
Dmitriy Novozhilov
2024-02-14 12:08:15 +02:00
committed by Space Team
parent c64575f4a2
commit b87aa470dd
7 changed files with 45 additions and 0 deletions
@@ -0,0 +1 @@
org.jetbrains.kotlin.util.ReenteringLazyValueComputationException
@@ -0,0 +1,14 @@
// FIR_IDENTICAL
// ISSUE: KT-55446
val Any?.tt: String
get() = ""
open class Base<in T>(t: T) {
private val tt = t.also { foo(null!!) }
fun foo(a: Derived<String>) = run {
val x: String = a.tt
}
}
class Derived<in T>(t: T) : Base<T>(t)