Added tests on resolved calls
for annotation entry, delegator to super call, array access
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
annotation class MyA(val i: Int)
|
||||
|
||||
<caret>MyA(1) fun foo() {}
|
||||
@@ -0,0 +1,16 @@
|
||||
annotation class MyA(val i: Int)
|
||||
|
||||
<caret>MyA(1) fun foo() {}
|
||||
|
||||
|
||||
Resolved call:
|
||||
|
||||
Resulting descriptor: constructor MyA(i: Int)
|
||||
|
||||
Explicit receiver kind = NO_EXPLICIT_RECEIVER
|
||||
This object = NO_RECEIVER
|
||||
Receiver argument = NO_RECEIVER
|
||||
|
||||
Value arguments mapping:
|
||||
|
||||
SUCCESS i : Int = 1
|
||||
@@ -0,0 +1,3 @@
|
||||
open class A {}
|
||||
|
||||
class B: <caret>A() {}
|
||||
@@ -0,0 +1,12 @@
|
||||
open class A {}
|
||||
|
||||
class B: <caret>A() {}
|
||||
|
||||
|
||||
Resolved call:
|
||||
|
||||
Resulting descriptor: constructor A()
|
||||
|
||||
Explicit receiver kind = NO_EXPLICIT_RECEIVER
|
||||
This object = NO_RECEIVER
|
||||
Receiver argument = NO_RECEIVER
|
||||
@@ -0,0 +1,3 @@
|
||||
fun foo(array: Array<Int>) {
|
||||
array<caret>[1]
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
fun foo(array: Array<Int>) {
|
||||
array<caret>[1]
|
||||
}
|
||||
|
||||
|
||||
Resolved call:
|
||||
|
||||
Resulting descriptor: fun get(index: Int): Int
|
||||
|
||||
Explicit receiver kind = THIS_OBJECT
|
||||
This object = array {Array<Int>}
|
||||
Receiver argument = NO_RECEIVER
|
||||
|
||||
Value arguments mapping:
|
||||
|
||||
SUCCESS index : Int = 1
|
||||
Reference in New Issue
Block a user