c7435ba760
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.
23 lines
424 B
Kotlin
Vendored
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
|
|
}
|