[FIR IDE] Resolve explicit invoke calls more correctly
Also, enable some muted tests ^KTIJ-21343 Fixed
This commit is contained in:
-2
@@ -1,5 +1,3 @@
|
||||
// IGNORE_FIR
|
||||
|
||||
package test
|
||||
|
||||
object Conflict {
|
||||
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
object Conflict
|
||||
|
||||
operator fun Conflict.invoke() {}
|
||||
|
||||
fun test() {
|
||||
class Conflict(i: Int)
|
||||
|
||||
<caret>Conflict()
|
||||
}
|
||||
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in test) operator fun test.Conflict.invoke()
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
fun interface A {
|
||||
operator fun invoke()
|
||||
}
|
||||
|
||||
val globalA: A = A {}
|
||||
|
||||
fun foo() {
|
||||
globalA.invo<caret>ke()
|
||||
}
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in A) operator fun invoke()
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
fun interface A {
|
||||
operator fun invoke()
|
||||
}
|
||||
|
||||
fun foo(param: A) {
|
||||
param.invo<caret>ke()
|
||||
}
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in A) operator fun invoke()
|
||||
Reference in New Issue
Block a user