Render candidate and resulting descriptors in resolved call tests

This commit is contained in:
Svetlana Isakova
2014-07-10 16:33:50 +04:00
parent bff579dd1e
commit 11ea241efb
43 changed files with 157 additions and 42 deletions
@@ -9,6 +9,8 @@ fun bar(f: Foo) {
Resolved call:
Resulting descriptor: fun Int.invoke(): Unit
Explicit receiver kind = BOTH_RECEIVERS
This object = f
Receiver argument = 1
This object = f {Foo}
Receiver argument = 1 {Int}
@@ -13,6 +13,8 @@ fun <T, R> with(receiver: T, f: T.() -> R) : R = throw Exception()
Resolved call:
Resulting descriptor: fun Int.invoke(): Unit
Explicit receiver kind = THIS_OBJECT
This object = f
Receiver argument = Int
This object = f {Foo}
Receiver argument = IntExt{fun Int.<anonymous>(): Unit}
@@ -8,6 +8,8 @@ fun bar(f: Foo) {
Resolved call:
Resulting descriptor: fun Foo.invoke(): Unit
Explicit receiver kind = RECEIVER_ARGUMENT
This object = NO_RECEIVER
Receiver argument = f
Receiver argument = f {Foo}
@@ -9,6 +9,8 @@ fun bar(f: Foo) {
Resolved call:
Resulting descriptor: fun invoke(): Unit
Explicit receiver kind = THIS_OBJECT
This object = f
This object = f {Foo}
Receiver argument = NO_RECEIVER