Fixed test data for new lambda syntax

This commit is contained in:
Stanislav Erokhin
2015-03-18 00:25:06 +03:00
parent 371908a280
commit 43e24f6b0d
54 changed files with 103 additions and 113 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
package jet121
fun box(): String {
val answer = apply("OK") { String.(): Int ->
val answer = apply("OK") {
get(0)
length()
}
+2 -2
View File
@@ -1,8 +1,8 @@
fun foo1() : (Int) -> Int = { (x: Int) -> x }
fun foo1() : (Int) -> Int = { x: Int -> x }
fun foo() {
val h : (Int) -> Int = foo1();
h(1)
val m : (Int) -> Int = {(a : Int) -> 1}//foo1()
val m : (Int) -> Int = {a : Int -> 1}//foo1()
m(1)
}