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,7 +1,7 @@
// "Create class 'Foo'" "true"
fun test() {
val a = Foo(2, "2") { (p: Int) -> p + 1 }
val a = Foo(2, "2") { p: Int -> p + 1 }
}
class Foo(i: Int, s: String, function: Function1<Int, Int>) {
@@ -1,7 +1,7 @@
// "Create class 'Foo'" "true"
fun test() {
val a = Foo { (p: Int) -> p + 1 }
val a = Foo { p: Int -> p + 1 }
}
class Foo(function: Function1<Int, Int>) {
@@ -1,5 +1,5 @@
// "Create class 'Foo'" "true"
fun test() {
val a = <caret>Foo(2, "2") { (p: Int) -> p + 1 }
val a = <caret>Foo(2, "2") { p: Int -> p + 1 }
}
@@ -1,5 +1,5 @@
// "Create class 'Foo'" "true"
fun test() {
val a = <caret>Foo { (p: Int) -> p + 1 }
val a = <caret>Foo { p: Int -> p + 1 }
}