e6f4d6e6fa
^KT-65406
25 lines
410 B
Kotlin
Vendored
25 lines
410 B
Kotlin
Vendored
class C {
|
|
val result: String
|
|
field = "OK"
|
|
get
|
|
|
|
constructor() /* primary */ {
|
|
super/*Any*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fun box(): String {
|
|
return contextual(f = local fun <anonymous>($context_receiver_0: C): String {
|
|
return $context_receiver_0.<get-result>()
|
|
}
|
|
)
|
|
}
|
|
|
|
fun contextual(f: @ContextFunctionTypeParams(count = 1) Function1<C, String>): String {
|
|
return f.invoke(p1 = C())
|
|
}
|
|
|