Import only classes when setting add unambiguous on the fly is enabled
#KT-30514 Fixed
This commit is contained in:
@@ -141,7 +141,7 @@ class KotlinAddImportAction internal constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun isUnambiguous(): Boolean {
|
fun isUnambiguous(): Boolean {
|
||||||
return variants.size == 1
|
return variants.size == 1 && variants[0].descriptorsToImport.all { it is ClassDescriptor }
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun execute(): Boolean {
|
override fun execute(): Boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user