KT-4893 Code completion should not show multiple functions with the same signature
#KT-4893 Fixed
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
package ppp
|
||||
|
||||
class C {
|
||||
val xxx = ""
|
||||
fun xxx() = ""
|
||||
fun xxx(p: Int) = ""
|
||||
|
||||
fun foo() {
|
||||
xx<caret>
|
||||
}
|
||||
}
|
||||
|
||||
val C.xxx: Int
|
||||
get() = 1
|
||||
|
||||
fun C.xxx() = 1
|
||||
fun C.xxx(p: Int) = 1
|
||||
fun C.xxx(p: String) = 1
|
||||
|
||||
// EXIST: { lookupString: "xxx", itemText: "xxx", tailText: null, typeText: "String" }
|
||||
// EXIST: { lookupString: "xxx", itemText: "xxx", tailText: "()", typeText: "String" }
|
||||
// EXIST: { lookupString: "xxx", itemText: "xxx", tailText: "(p: Int)", typeText: "String" }
|
||||
// EXIST: { lookupString: "xxx", itemText: "xxx", tailText: "(p: String) for C in ppp", typeText: "Int" }
|
||||
// NOTHING_ELSE
|
||||
Reference in New Issue
Block a user