KotlinUnusedImportInspection: support unresolved references
#KT-31331 Fixed
This commit is contained in:
+2
-1
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"mainFile": "a/main.kt",
|
||||
"type": "MOVE_FILES",
|
||||
"targetPackage": "b"
|
||||
"targetPackage": "b",
|
||||
"withRuntime": "true"
|
||||
}
|
||||
|
||||
-2
@@ -1,4 +1,2 @@
|
||||
package b
|
||||
|
||||
import java.util.function.IntPredicate
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -4,6 +4,6 @@ import b.test
|
||||
|
||||
class Test {
|
||||
fun foo() {
|
||||
test()
|
||||
test
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -25,6 +25,6 @@ var <caret>test: String
|
||||
|
||||
class Test {
|
||||
fun foo() {
|
||||
test()
|
||||
test
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"mainFile": "a/main.kt",
|
||||
"type": "MOVE_KOTLIN_TOP_LEVEL_DECLARATIONS",
|
||||
"targetFile": "b/dependency.kt"
|
||||
"targetFile": "b/dependency.kt",
|
||||
"withRuntime": "true"
|
||||
}
|
||||
|
||||
idea/testData/refactoring/move/kotlin/moveTopLevelDeclarations/movePropertyToPackage/after/a/main.kt
Vendored
+1
-1
@@ -4,6 +4,6 @@ import b.test
|
||||
|
||||
class Test {
|
||||
fun foo() {
|
||||
test()
|
||||
test
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -25,6 +25,6 @@ var <caret>test: String
|
||||
|
||||
class Test {
|
||||
fun foo() {
|
||||
test()
|
||||
test
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"mainFile": "a/main.kt",
|
||||
"type": "MOVE_KOTLIN_TOP_LEVEL_DECLARATIONS",
|
||||
"targetPackage": "b"
|
||||
"targetPackage": "b",
|
||||
"withRuntime": "true"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user