Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/kt48993.kt
T
Ivan Kylchik c7435ba760 Replace all occurrences of WITH_RUNTIME with WITH_STDLIB
We are going to deprecate `WITH_RUNTIME` directive. The main reason
behind this change is that `WITH_STDLIB` directive better describes
its meaning, specifically it will add kotlin stdlib to test's classpath.
2021-11-17 15:26:38 +03:00

23 lines
424 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// WITH_STDLIB
// FILE: 1.kt
@Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
@kotlin.jvm.JvmInline
value class C(val x: String)
// FILE: 2.kt
@file:JvmMultifileClass
@file:JvmName("Multifile")
private var result: String? = null
var String.k: C
get() = C(this + result!!)
set(value) { result = value.x }
// FILE: 3.kt
fun box(): String {
"".k = C("K")
return "O".k.x
}