Implement quickfixes for Android Lint api issues

#KT-16624 Fixed
#KT-16625 Fixed
#KT-14947 Fixed
This commit is contained in:
Vyacheslav Gerasimov
2017-03-03 16:12:54 +03:00
parent a907ec92b5
commit 1376c8f8cf
178 changed files with 1307 additions and 221 deletions
@@ -0,0 +1,13 @@
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()
@@ -0,0 +1,3 @@
<resources>
<string name="resource_id">zxc</string>
</resources>