Migrate testdata to new lambda syntax

This commit is contained in:
Stanislav Erokhin
2015-04-03 13:40:07 +03:00
parent b703f59e04
commit 3de0dff575
134 changed files with 263 additions and 277 deletions
@@ -1,4 +1,4 @@
fun box(): String {
val sum = {Int.(other: Int) -> this + other }
val sum = fun Int.(other: Int) = this + other
return if (1 sum 2 == 3) "OK" else "Fail"
}
@@ -19,7 +19,7 @@ fun test2() {
}
fun Int.foo(a: Int) = this * a
val boo = {Int.(a: Int): Int -> this + a}
val boo = fun Int.(a: Int): Int = this + a
fun box(): String {
test1()