Import as alias with another name is now counted as usage itself #KT-11933 Fixed
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtObjectDeclaration
|
||||
import Imported as Alias
|
||||
|
||||
object <caret>Imported
|
||||
+1
@@ -0,0 +1 @@
|
||||
Usage in import 2 import Imported as Alias
|
||||
@@ -0,0 +1,5 @@
|
||||
import <caret>Imported as Alias
|
||||
|
||||
object Imported
|
||||
|
||||
// REF: (<root>).Imported
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Safe delete 'Imported'" "false"
|
||||
// ACTION: Create test
|
||||
// ACTION: Move 'Imported' to separate file
|
||||
import Imported as Alias
|
||||
|
||||
object <caret>Imported
|
||||
|
||||
fun use() {
|
||||
Alias.hashCode()
|
||||
}
|
||||
Reference in New Issue
Block a user