Refactoring: AbstractResolvedCallsTest
Render resolved call to a separate file
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// !CALL: invoke
|
||||
|
||||
class Foo() {
|
||||
fun Int.invoke() {}
|
||||
}
|
||||
|
||||
fun bar(f: Foo, i: Int) {
|
||||
with (i) {
|
||||
f()
|
||||
}
|
||||
}
|
||||
|
||||
fun <T, R> with(receiver: T, f: T.() -> R) : R = throw Exception()
|
||||
|
||||
|
||||
Resolved call:
|
||||
|
||||
Explicit receiver kind = THIS_OBJECT
|
||||
This object = f
|
||||
Receiver argument = Int
|
||||
Reference in New Issue
Block a user