Minor. removed functions which declared in Standard.kt from diagnostic testdata.

Removed declaration for functions: TODO, run, with, apply, let.
This commit is contained in:
Stanislav Erokhin
2016-01-24 13:15:37 +03:00
parent d7438d9f2b
commit 298a075381
135 changed files with 3 additions and 222 deletions
@@ -31,5 +31,3 @@ fun test(c: () -> String, e: Int.() -> String) {
(e)()
}
}
fun <T, R> with(receiver: T, f: T.() -> R): R = receiver.f()
@@ -2,7 +2,6 @@ package
public fun test(/*0*/ c: () -> kotlin.String, /*1*/ e: kotlin.Int.() -> kotlin.String): kotlin.Unit
public fun test(/*0*/ a: A, /*1*/ b: B): kotlin.Unit
public fun </*0*/ T, /*1*/ R> with(/*0*/ receiver: T, /*1*/ f: T.() -> R): R
public final class A {
public constructor A()
@@ -19,5 +19,3 @@ fun test(a: A) {
}
}
}
fun <T, R> with(receiver: T, f: T.() -> R): R = receiver.f()
@@ -1,7 +1,6 @@
package
public fun test(/*0*/ a: A): kotlin.Unit
public fun </*0*/ T, /*1*/ R> with(/*0*/ receiver: T, /*1*/ f: T.() -> R): R
public final class A {
public constructor A(/*0*/ x: (kotlin.String.() -> kotlin.Unit)?)
@@ -59,6 +59,3 @@ fun test(d: D, c: C) {
}
}
}
//--------------
fun <T, R> with(receiver: T, f: T.() -> R) : R = receiver.f()
@@ -5,7 +5,6 @@ public fun test(/*0*/ a: A): kotlin.Unit
public fun test(/*0*/ b: B): kotlin.Unit
public fun test(/*0*/ d: D, /*1*/ c: C): kotlin.Unit
public fun test(/*0*/ foo: Foo): kotlin.Unit
public fun </*0*/ T, /*1*/ R> with(/*0*/ receiver: T, /*1*/ f: T.() -> R): R
public operator fun Foo.invoke(): kotlin.Unit
public interface A {
@@ -58,6 +58,3 @@ fun test(d: D, c: C) {
}
}
}
//--------------
fun <T, R> with(receiver: T, f: T.() -> R) : R = receiver.f()
@@ -5,7 +5,6 @@ public fun test(/*0*/ a: A): kotlin.Unit
public fun test(/*0*/ b: B): kotlin.Unit
public fun test(/*0*/ d: D, /*1*/ c: C): kotlin.Unit
public fun test(/*0*/ foo: Foo): kotlin.Unit
public fun </*0*/ T, /*1*/ R> with(/*0*/ receiver: T, /*1*/ f: T.() -> R): R
public interface A {
public abstract val foo: Foo
@@ -121,6 +121,3 @@ fun test(u: U, v: V, x: X) {
}
}
}
//--------------
fun <T, R> with(receiver: T, f: T.() -> R) : R = receiver.f()
@@ -5,7 +5,6 @@ public fun test(/*0*/ c: C, /*1*/ b: B): kotlin.Unit
public fun test(/*0*/ e: E, /*1*/ d: D): kotlin.Unit
public fun test(/*0*/ g: G, /*1*/ f: F): kotlin.Unit
public fun test(/*0*/ u: U, /*1*/ v: V, /*2*/ x: X): kotlin.Unit
public fun </*0*/ T, /*1*/ R> with(/*0*/ receiver: T, /*1*/ f: T.() -> R): R
public interface A {
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
@@ -40,9 +40,6 @@ fun test(a: A, b: B) {
}
}
public inline fun <T, R> with(receiver: T, f: T.() -> R): R = receiver.f()
// FILE: 1.kt
package fooIsMember
@@ -84,5 +81,3 @@ fun test(a: A, b: B) {
}
}
}
public inline fun <T, R> with(receiver: T, f: T.() -> R): R = receiver.f()
@@ -3,7 +3,6 @@ package
package fooIsExtension {
public val fooIsExtension.A.foo: fooIsExtension.B.() -> kotlin.Unit
public fun test(/*0*/ a: fooIsExtension.A, /*1*/ b: fooIsExtension.B): kotlin.Unit
public inline fun </*0*/ T, /*1*/ R> with(/*0*/ receiver: T, /*1*/ f: T.() -> R): R
public final class A {
public constructor A()
@@ -22,7 +21,6 @@ package fooIsExtension {
package fooIsMember {
public fun test(/*0*/ a: fooIsMember.A, /*1*/ b: fooIsMember.B): kotlin.Unit
public inline fun </*0*/ T, /*1*/ R> with(/*0*/ receiver: T, /*1*/ f: T.() -> R): R
public final class A {
public constructor A()
@@ -15,5 +15,3 @@ fun test(a: A, b: B) {
(a.foo)(this)
}
}
public inline fun <T, R> with(receiver: T, f: T.() -> R): R = receiver.f()
@@ -1,7 +1,6 @@
package
public fun test(/*0*/ a: A, /*1*/ b: B): kotlin.Unit
public inline fun </*0*/ T, /*1*/ R> with(/*0*/ receiver: T, /*1*/ f: T.() -> R): R
public final class A {
public constructor A()
@@ -16,5 +16,3 @@ fun test(a: A, b: B) {
<!FUNCTION_EXPECTED!>(a)<!>()
}
}
fun <T, R> with(receiver: T, f: T.() -> R): R = receiver.f()
@@ -2,7 +2,6 @@ package
public val B.a: () -> kotlin.Int
public fun test(/*0*/ a: A, /*1*/ b: B): kotlin.Unit
public fun </*0*/ T, /*1*/ R> with(/*0*/ receiver: T, /*1*/ f: T.() -> R): R
public final class A {
public constructor A()