FIR IDE: resolve implicit invoke to callable property
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
fun foo(a: Int) {
|
||||
<caret>a()
|
||||
}
|
||||
|
||||
operator fun Int.invoke() {}
|
||||
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: value-parameter a: kotlin.Int
|
||||
@@ -0,0 +1,3 @@
|
||||
fun foo(a: () -> Unit) {
|
||||
<caret>a()
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: value-parameter a: () -> kotlin.Unit
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
fun interface A {
|
||||
operator fun invoke()
|
||||
}
|
||||
fun foo(a: A) {
|
||||
<caret>a()
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: value-parameter a: A
|
||||
Reference in New Issue
Block a user