Files
kotlin-fork/compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.kt.txt
T
2021-12-02 20:24:56 +03:00

24 lines
383 B
Plaintext
Vendored

class C {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
val result: String
field = "OK"
get
}
fun contextual(f: @ContextFunctionTypeParams(count = 1) Function1<C, String>): String {
return f.invoke(p1 = C())
}
fun box(): String {
return contextual(f = local fun <anonymous>(<this>: C): String {
return <this>.<get-result>()
}
)
}