Removed InvokeOnExtensionFunctionWithExplicitReceiverFix

This commit is contained in:
Stanislav Erokhin
2015-12-10 18:42:20 +03:00
parent dd24fd47f7
commit 1890b8cbd3
10 changed files with 0 additions and 165 deletions
@@ -1,18 +0,0 @@
// "Surround callee with parenthesis" "true"
class A {
val foo: B.(String, Int) -> Unit get() = null!!
}
class B {
fun getA() = A()
}
fun test(b: B) {
with(b) {
b.getA().<caret>foo("", 1)
}
}
public inline fun <T, R> with(receiver: T, f: T.() -> R): R = receiver.f()
@@ -1,18 +0,0 @@
// "Surround callee with parenthesis" "true"
class A {
val foo: B.(String, Int) -> Unit get() = null!!
}
class B {
fun getA() = A()
}
fun test(b: B) {
with(b) {
(b.getA().foo)("", 1)
}
}
public inline fun <T, R> with(receiver: T, f: T.() -> R): R = receiver.f()
@@ -1,15 +0,0 @@
// "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()
@@ -1,15 +0,0 @@
// "Surround callee with parenthesis" "true"
class A {
val foo: B.() -> Unit get() = null!!
}
class B
fun test(a: A, b: B) {
with(b) {
(a.foo)()
}
}
public inline fun <T, R> with(receiver: T, f: T.() -> R): R = receiver.f()