KotlinUnusedImportInspection: support unresolved references

#KT-31331 Fixed
This commit is contained in:
Dmitry Gridin
2020-06-17 22:02:30 +07:00
parent 10c62b8d77
commit 2610dedcbd
12 changed files with 194 additions and 119 deletions
@@ -1,5 +1,6 @@
{
"mainFile": "a/main.kt",
"type": "MOVE_FILES",
"targetPackage": "b"
"targetPackage": "b",
"withRuntime": "true"
}
@@ -1,4 +1,2 @@
package b
import java.util.function.IntPredicate
@@ -4,6 +4,6 @@ import b.test
class Test {
fun foo() {
test()
test
}
}
@@ -25,6 +25,6 @@ var <caret>test: String
class Test {
fun foo() {
test()
test
}
}
@@ -1,5 +1,6 @@
{
"mainFile": "a/main.kt",
"type": "MOVE_KOTLIN_TOP_LEVEL_DECLARATIONS",
"targetFile": "b/dependency.kt"
"targetFile": "b/dependency.kt",
"withRuntime": "true"
}
@@ -4,6 +4,6 @@ import b.test
class Test {
fun foo() {
test()
test
}
}
@@ -25,6 +25,6 @@ var <caret>test: String
class Test {
fun foo() {
test()
test
}
}
@@ -1,5 +1,6 @@
{
"mainFile": "a/main.kt",
"type": "MOVE_KOTLIN_TOP_LEVEL_DECLARATIONS",
"targetPackage": "b"
"targetPackage": "b",
"withRuntime": "true"
}