Files
kotlin-fork/compiler/testData/ir/irText/expressions/posptonedPCLACallInsideStringInterpolation.kt.txt
2024-02-16 10:19:38 +00:00

31 lines
475 B
Kotlin
Vendored

class Controller<K : Any?> {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
fun yield(k: K) {
}
}
fun bar(s: String) {
}
fun foo() {
generate<String>(lambda = local fun Controller<String>.<anonymous>() {
bar(s = id<Controller<String>>(e = $this$generate))
$this$generate.yield(k = "")
}
)
}
fun <T : Any?> generate(lambda: @ExtensionFunctionType Function1<Controller<T>, Unit>) {
}
fun <E : Any?> id(e: E): E {
return e
}