KT-33903: consider imports from objects when removing descriptors duplicates

- `ImportedFromObjectCallableDescriptor` and descriptors in general do
not have consistent `equals`,  which leads to duplication in completion
when multiple functions from objects are imported, or when function is
visible in some scope both implicitly and by import (see KT33903_1.kt)
- ^KT-33903 Fixed
This commit is contained in:
Roman Golyshev
2019-09-20 19:23:44 +03:00
committed by Roman Golyshev
parent cdebd6bc05
commit 0239229dfc
5 changed files with 52 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
import Obj.foo
import Obj.foo
object Obj {
fun Any.foo() {}
fun usage() {
Any().foo<caret>
}
}
// EXIST: foo
// NUMBER: 1
+13
View File
@@ -0,0 +1,13 @@
import Obj.foo
import Obj.foo
object Obj {
fun Any.foo() {}
}
fun usage() {
Any().foo<caret>
}
// EXIST: foo
// NUMBER: 1