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.
16 lines
317 B
Kotlin
Vendored
16 lines
317 B
Kotlin
Vendored
// WITH_STDLIB
|
|
|
|
object Host {
|
|
class StringDelegate(val s: String) {
|
|
operator fun getValue(receiver: String, p: Any) = receiver + s
|
|
}
|
|
|
|
operator fun String.provideDelegate(host: Any?, p: Any) = StringDelegate(this)
|
|
|
|
val String.plusK by "K"
|
|
|
|
val ok = "O".plusK
|
|
}
|
|
|
|
fun box(): String = Host.ok
|