Files
kotlin-fork/compiler/testData/resolvedCalls/invoke/implicitReceiverForInvoke.txt
T

18 lines
271 B
Plaintext

class Foo() {
fun Int.invoke() {}
}
fun bar(f: Foo, i: Int) {
with (i) {
f<caret>()
}
}
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