Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/inlineInCompanion.kt
T
Georgy Bronnikov 40872dd4ca JVM_IR: fix parallel compilation
Non-static inline functions that return inline
classes need to be tracked when copying files for by-file lowering.

FIXED: KT-45680
2021-06-22 02:22:36 +03:00

18 lines
250 B
Kotlin
Vendored

// TARGET_BACKEND: JVM_IR
// WITH_RUNTIME
// FILE: R.kt
import kotlin.jvm.JvmInline
@JvmInline
value class R(val value: String) {
companion object {
inline fun ok() = R("OK")
}
}
// FILE: test.kt
fun box(): String = R.ok().value