Files
Vyacheslav Gerasimov 1376c8f8cf Implement quickfixes for Android Lint api issues
#KT-16624 Fixed
#KT-16625 Fixed
#KT-14947 Fixed
2017-03-03 16:22:36 +03:00

14 lines
258 B
Kotlin
Vendored

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