Files
kotlin-fork/analysis/low-level-api-fir/testData/contextCollector/extensionLambdas.kt
T
Dmitrii Gridin 33e6a85a2d [LL FIR] rename testdata to testData to avoid copyright generation
We exclude testData pattern from copyright scope
2023-09-18 21:12:45 +00:00

13 lines
238 B
Kotlin
Vendored

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) {}