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
-12
View File
@@ -73,18 +73,6 @@ fun <T : Cloneable> withTypeParameters() where T : Comparable<T> {
val x = C() willBeInfix 1
class AAA {
val foo: BBB.() -> Unit get() = null!!
}
class BBB
fun test(a: AAA, b: BBB) {
with(b) {
a.foo()
}
}
fun infixTest() {
arrayListOf(1, 2, 3) map { it }
}
-12
View File
@@ -72,18 +72,6 @@ fun <T> withTypeParameters() where T : Cloneable, T : Comparable<T> {
val x = C() willBeInfix 1
class AAA {
val foo: BBB.() -> Unit get() = null!!
}
class BBB
fun test(a: AAA, b: BBB) {
with(b) {
(a.foo)()
}
}
fun infixTest() {
arrayListOf(1, 2, 3).map { it }
}
@@ -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()