Added tests on resolved calls

for annotation entry, delegator to super call, array access
This commit is contained in:
Svetlana Isakova
2014-07-10 17:53:13 +04:00
parent 22624186f6
commit eca2c7beea
8 changed files with 81 additions and 1 deletions
@@ -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