fix KotlinAndroidAddStringResource: correct generic extension function processing + minor refactoring
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
package com.myapp
|
||||
|
||||
import android.content.Context
|
||||
|
||||
fun <T: Context> T.getText(): String? = getString(R.string.resource_id)
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
<resources>
|
||||
<string name="resource_id">some text</string>
|
||||
</resources>
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"rFile": "../../R.kt",
|
||||
"resDirectory": "../../res",
|
||||
"intentionClass": "org.jetbrains.kotlin.android.intentions.KotlinAndroidAddStringResource"
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package com.myapp
|
||||
|
||||
import android.content.Context
|
||||
|
||||
fun <T: Context> T.getText(): String? = "some <caret>text"
|
||||
Reference in New Issue
Block a user