blob: 187c8c91bb0952c80baf7cb444cfb47a8a47df59 [file]
// "Surround callee with parenthesis" "true"
class A {
val foo: B.() -> Unit get() = null!!
}
class B
fun test(a: A, b: B) {
with(b) {
a.<caret>foo()
}
}
public inline fun <T, R> with(receiver: T, f: T.() -> R): R = receiver.f()