Files
kotlin-fork/compiler/testData/codegen/box/localClasses/localClassInInitializer.kt
T
vladislav.grechko 54858c2118 [FIR] Fix naming of local classes when serializing metadata
^KT-63655: Fixed
^KT-63901: Fixed
^KT-63988: Fixed
2024-02-07 12:30:50 +00:00

19 lines
286 B
Kotlin
Vendored

class A {
var a: String = "Fail"
init {
open class B() {
open fun s() : String = "O"
}
val o = object : B() {
override fun s(): String = "K"
}
a = B().s() + o.s()
}
}
fun box() : String {
return A().a
}