Fixed completion for extension function after removing members for implicit receiver from scope.
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
class A {
|
||||
fun String.foo() {}
|
||||
}
|
||||
|
||||
fun Any.test() { // see KT-8865 Member extension after this smart cast not working
|
||||
if (this is A) {
|
||||
"".<caret>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// EXIST: foo
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
interface A {
|
||||
fun memberA()
|
||||
}
|
||||
|
||||
interface B {
|
||||
fun memberB()
|
||||
}
|
||||
|
||||
interface C {
|
||||
fun memberC()
|
||||
}
|
||||
|
||||
fun C.test(a: Any) {
|
||||
if (a is A && a is B) {
|
||||
a.<caret>
|
||||
}
|
||||
}
|
||||
|
||||
// EXIST: memberA
|
||||
// EXIST: memberB
|
||||
// ABSENT: memberC
|
||||
Reference in New Issue
Block a user