Render candidate and resulting descriptors in resolved call tests
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user