Files
kotlin-fork/compiler/testData/codegen/box/classes/kt40332.kt
T
Steven Schäfer ea98062241 JVM IR: Fix compilation of inline functions in anonymous objects...
...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.
2020-08-24 14:10:36 +02:00

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()