Files
kotlin-fork/idea/testData/slicer/inflow/extensionLambdaReceiver.kt
T
2020-04-18 01:24:55 +03:00

12 lines
167 B
Kotlin
Vendored

// FLOW: IN
fun foo() {
with("A") {
val <caret>v = this
}
}
inline fun <T, R> with(receiver: T, block: T.() -> R): R {
return receiver.block()
}