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()
@@ -7,6 +7,3 @@ fun test() {
}
fun foo(x: Int) = x
// from library
fun <T, R> with(receiver: T, f: T.() -> R) : R = receiver.f()
@@ -3,5 +3,4 @@ package
package c {
public fun foo(/*0*/ x: kotlin.Int): kotlin.Int
public fun test(): kotlin.Unit
public fun </*0*/ T, /*1*/ R> with(/*0*/ receiver: T, /*1*/ f: T.() -> R): R
}
@@ -16,5 +16,3 @@ fun test(foo: A.() -> Int) {
}
}
}
fun <T, R> with(receiver: T, f: T.() -> R): R = receiver.f()
@@ -1,7 +1,6 @@
package
public fun test(/*0*/ foo: A.() -> kotlin.Int): kotlin.Unit
public fun </*0*/ T, /*1*/ R> with(/*0*/ receiver: T, /*1*/ f: T.() -> R): R
public final class A {
public constructor A()
@@ -11,5 +11,3 @@ fun test(foo: A.() -> Int) {
this.foo() checkType { _<A>() }
}
}
fun <T, R> with(receiver: T, f: T.() -> R): R = receiver.f()
@@ -1,7 +1,6 @@
package
public fun test(/*0*/ foo: A.() -> kotlin.Int): kotlin.Unit
public fun </*0*/ T, /*1*/ R> with(/*0*/ receiver: T, /*1*/ f: T.() -> R): R
public final class A {
public constructor A()
@@ -20,4 +20,3 @@ fun a(c: Calendar) {
timeInMillis = ""
}
}
fun <T> T.apply(f: T.() -> Unit): T { f(); return this }
@@ -2,7 +2,6 @@ package
public var A.timeInMillis: kotlin.String
public fun a(/*0*/ c: Calendar): kotlin.Unit
public fun </*0*/ T> T.apply(/*0*/ f: T.() -> kotlin.Unit): T
public final class A {
public constructor A()
@@ -14,6 +14,3 @@ fun test(a: A) {
foo() checkType { _<Int>() }
}
}
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 fun A.foo(): A
public final class A {
@@ -16,5 +16,3 @@ fun test(a: A) {
this.foo() checkType { _<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()
@@ -27,5 +27,3 @@ class B {
}
}
}
fun <T, R> with(receiver: T, f: T.() -> R): R = receiver.f()
@@ -2,7 +2,6 @@ package
private val A.foo: kotlin.Int
public fun test(/*0*/ a: A): kotlin.Unit
public fun </*0*/ T, /*1*/ R> with(/*0*/ receiver: T, /*1*/ f: T.() -> R): R
public open class A {
public constructor A()
@@ -34,5 +34,3 @@ fun test(a: A, b: B, c: C) {
}
}
}
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, /*2*/ c: C): kotlin.Unit
public fun </*0*/ T, /*1*/ R> with(/*0*/ receiver: T, /*1*/ f: T.() -> R): R
public open class A {
public constructor A()