Migrate testdata to new lambda syntax
This commit is contained in:
+1
-1
@@ -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
-1
@@ -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
-1
@@ -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
-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 }
|
||||
}
|
||||
Reference in New Issue
Block a user