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
@@ -5,8 +5,6 @@ fun CharSequence?.bar2() {}
fun <T : CharSequence> T.bar3() {}
fun <T, R> T.let(f: (T) -> R): R = f(this)
fun <T : String?> foo(x: T) {
x<!UNSAFE_CALL!>.<!>length
x?.length
@@ -4,4 +4,3 @@ public fun </*0*/ T : kotlin.String?> foo(/*0*/ x: T): kotlin.Unit
public fun </*0*/ T : kotlin.CharSequence?> T.bar1(): kotlin.Unit
public fun kotlin.CharSequence?.bar2(): kotlin.Unit
public fun </*0*/ T : kotlin.CharSequence> T.bar3(): kotlin.Unit
public fun </*0*/ T, /*1*/ R> T.let(/*0*/ f: (T) -> R): R
@@ -4,8 +4,6 @@ class A<T> {
}
class Out<out E>
public inline fun <T, R> with(receiver: T, f: T.() -> R): R = receiver.f()
fun test(x: A<out CharSequence>, y: Out<CharSequence>) {
with(x) {
// TODO: this diagnostic could be replaced with TYPE_MISMATCH_DUE_TO_TYPE_PROJECTION
@@ -1,7 +1,6 @@
package
public fun test(/*0*/ x: A<out kotlin.CharSequence>, /*1*/ y: Out<kotlin.CharSequence>): kotlin.Unit
public inline fun </*0*/ T, /*1*/ R> with(/*0*/ receiver: T, /*1*/ f: T.() -> R): R
public final class A</*0*/ T> {
public constructor A</*0*/ T>()