Files
2016-10-28 15:30:22 +03:00

14 lines
239 B
Kotlin
Vendored

package com.myapp
import android.content.Context
fun foo(context: Context) {
with (context) {
with (2) {
"z<caret>xc"
}
}
}
inline fun <T, R> with(receiver: T, block: T.() -> R): R = receiver.block()