ea98062241
...in class members. The corresponding classes end up nested in the class initializer of the surrounding class and we need to take this into account when creating instances of ClassCodegen. This fixes KT-40332 on the JVM IR backend.
12 lines
178 B
Kotlin
Vendored
12 lines
178 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM
|
|
|
|
object A {
|
|
private val s = object {
|
|
inline operator fun invoke(): String = "OK"
|
|
}
|
|
|
|
fun value() = s()
|
|
}
|
|
|
|
fun box(): String = A.value()
|