Fixed completion for extension function after removing members for implicit receiver from scope.
This commit is contained in:
+3
-1
@@ -12,4 +12,6 @@ fun f(pair: Pair<out Any, out Any>) {
|
||||
// EXIST: { lookupString: "hashCode", attributes: "bold" }
|
||||
// EXIST: { lookupString: "forString", attributes: "grayed" }
|
||||
// EXIST: { lookupString: "forAny", attributes: "bold" }
|
||||
// EXIST: { lookupString: "forT", attributes: "" }
|
||||
|
||||
/*TODO: { lookupString: "forT", attributes: "" }*/
|
||||
// EXIST: { lookupString: "forT", attributes: "grayed" }
|
||||
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
interface A {
|
||||
fun foo(): Any
|
||||
fun bar()
|
||||
}
|
||||
interface B: A {
|
||||
override fun foo(): String
|
||||
}
|
||||
|
||||
fun f(pair: Pair<out A, out Any>) {
|
||||
if (pair.first !is B) return
|
||||
pair.first.<caret>
|
||||
}
|
||||
/*TODO: { lookupString: "foo", "typeText":"Any", attributes: "bold" } */
|
||||
// EXIST: { lookupString: "foo", "typeText":"String", attributes: "bold" }
|
||||
// EXIST: { lookupString: "bar", attributes: "bold" }
|
||||
Reference in New Issue
Block a user