33e6a85a2d
We exclude testData pattern from copyright scope
13 lines
238 B
Kotlin
Vendored
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) {} |