Supported object value access expressions
This commit is contained in:
+9
-1
@@ -1,13 +1,21 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.KtNamedFunction
|
||||
// OPTIONS: usages
|
||||
package pack
|
||||
|
||||
class B(val n: Int) {
|
||||
open class B(val n: Int) {
|
||||
operator fun <caret>invoke(i: Int){}
|
||||
}
|
||||
|
||||
object Obj : B(0)
|
||||
|
||||
fun f() = B(1)
|
||||
|
||||
fun test() {
|
||||
f(1).invoke(2)
|
||||
f(2)(2)
|
||||
|
||||
val v = Obj
|
||||
v(1)
|
||||
|
||||
listOf(pack.Obj)[0](1)
|
||||
}
|
||||
|
||||
+11
-5
@@ -1,8 +1,14 @@
|
||||
Checked type of f()
|
||||
Checked type of pack.f()
|
||||
Checked type of v
|
||||
Resolved f(1)
|
||||
Resolved f(2)
|
||||
Resolved f(2)(2)
|
||||
Searched references to B
|
||||
Searched references to f() in non-Java files
|
||||
Used plain search of B.invoke(i: Int) in LocalSearchScope:
|
||||
CLASS:B
|
||||
Resolved listOf(pack.Obj)[0](1)
|
||||
Resolved v(1)
|
||||
Searched references to pack.B
|
||||
Searched references to pack.Obj
|
||||
Searched references to pack.f() in non-Java files
|
||||
Searched references to v in non-Java files
|
||||
Used plain search of pack.B.invoke(i: Int) in LocalSearchScope:
|
||||
CLASS:B
|
||||
OBJECT_DECLARATION:Obj
|
||||
@@ -1,2 +1,4 @@
|
||||
Function call 11 f(1).invoke(2)
|
||||
Implicit 'invoke' 12 f(2)(2)
|
||||
Function call 14 f(1).invoke(2)
|
||||
Implicit 'invoke' 15 f(2)(2)
|
||||
Implicit 'invoke' 18 v(1)
|
||||
Implicit 'invoke' 20 listOf(pack.Obj)[0](1)
|
||||
Reference in New Issue
Block a user