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:
committed by
Roman Golyshev
parent
cdebd6bc05
commit
0239229dfc
@@ -0,0 +1,13 @@
|
||||
import Obj.foo
|
||||
import Obj.foo
|
||||
|
||||
object Obj {
|
||||
fun Any.foo() {}
|
||||
|
||||
fun usage() {
|
||||
Any().foo<caret>
|
||||
}
|
||||
}
|
||||
|
||||
// EXIST: foo
|
||||
// NUMBER: 1
|
||||
@@ -0,0 +1,13 @@
|
||||
import Obj.foo
|
||||
import Obj.foo
|
||||
|
||||
object Obj {
|
||||
fun Any.foo() {}
|
||||
}
|
||||
|
||||
fun usage() {
|
||||
Any().foo<caret>
|
||||
}
|
||||
|
||||
// EXIST: foo
|
||||
// NUMBER: 1
|
||||
Reference in New Issue
Block a user