Files
kotlin-fork/analysis/low-level-api-fir/testdata/contextCollector/extensionLambdas.kt
T
2023-08-07 16:22:02 +00:00

13 lines
238 B
Kotlin

fun test() {
block("foo") foo@{
block(42) num@{
<expr>consume(this@foo.length + this@num)</expr>
}
}
}
fun <T> block(reciever: T, block: T.() -> Unit) {
receiver.block()
}
fun consume(num: Int) {}