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
@@ -26,7 +26,6 @@ fun <T> generic_invoker(gen : () -> T) : T {
fun println(message : Int) { System.out.println(message) }
fun println(message : Long) { System.out.println(message) }
inline fun <T> run(body : () -> T) : T = body()
fun main(args : Array<String>) {
@@ -5,7 +5,6 @@ public fun </*0*/ T> generic_invoker(/*0*/ gen: () -> T): T
public fun main(/*0*/ args: kotlin.Array<kotlin.String>): kotlin.Unit
public fun println(/*0*/ message: kotlin.Int): kotlin.Unit
public fun println(/*0*/ message: kotlin.Long): kotlin.Unit
public inline fun </*0*/ T> run(/*0*/ body: () -> T): T
public fun </*0*/ T> kotlin.collections.Iterable<T>.foreach(/*0*/ operation: (T) -> kotlin.Unit): kotlin.Unit
public fun </*0*/ T> kotlin.collections.Iterable<T>.foreach(/*0*/ operation: (kotlin.Int, T) -> kotlin.Unit): kotlin.Unit
public infix fun </*0*/ T> kotlin.collections.Iterator<T>.foreach(/*0*/ operation: (T) -> kotlin.Unit): kotlin.Unit
+1 -3
View File
@@ -1,7 +1,5 @@
// KT-439 Support labeled function literals in call arguments
inline fun <T> run1(body : () -> T) : T = body()
fun main1(<!UNUSED_PARAMETER!>args<!> : Array<String>) {
run1 l@{ 1 } // should not be an error
run l@{ 1 } // should not be an error
}
@@ -1,4 +1,3 @@
package
public fun main1(/*0*/ args: kotlin.Array<kotlin.String>): kotlin.Unit
public inline fun </*0*/ T> run1(/*0*/ body: () -> T): T