29ab166e1b
Render resolved call to a separate file
13 lines
187 B
Kotlin
13 lines
187 B
Kotlin
// !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() |