FIR Completion: Fix completion in function calls (foo.bar<caret>())
In such expressions, `KtCallExpression` wraps `KtSimpleNameExpression`, so `getQualifiedExpressionForSelector()` returns `null` Also, enable tests that are fixed by this
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// FIR_COMPARISON
|
||||
|
||||
infix fun Int.func(s: String): Int{}
|
||||
|
||||
fun test() {
|
||||
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// FIR_COMPARISON
|
||||
|
||||
class LocalClass
|
||||
|
||||
fun LocalClass.ext(action: () -> Unit) {}
|
||||
fun LocalClass.extAnother(action: () -> Unit) {}
|
||||
|
||||
fun usage(l: LocalClass) {
|
||||
l.ext<caret> {}
|
||||
}
|
||||
|
||||
// EXIST: ext
|
||||
// EXIST: extAnother
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// FIR_COMPARISON
|
||||
|
||||
class Expr {}
|
||||
class Num : Expr() {
|
||||
fun testing() {}
|
||||
|
||||
Reference in New Issue
Block a user