Migrate testdata to new lambda syntax
This commit is contained in:
+1
-1
@@ -4,5 +4,5 @@ class Mocha() {
|
||||
}
|
||||
fun main() {
|
||||
val mocha = Mocha()
|
||||
val testing = mocha<caret>(1, "fire"){ (x: Int) -> "hello world" }
|
||||
val testing = mocha<caret>(1, "fire"){ x: Int -> "hello world" }
|
||||
}
|
||||
+1
-1
@@ -4,5 +4,5 @@ class Mocha() {
|
||||
}
|
||||
fun main() {
|
||||
val mocha = Mocha()
|
||||
val testing = mocha.invoke(1, "fire"){ (x: Int) -> "hello world" }
|
||||
val testing = mocha.invoke(1, "fire"){ x: Int -> "hello world" }
|
||||
}
|
||||
@@ -3,5 +3,5 @@ class Mocha() {
|
||||
}
|
||||
fun main() {
|
||||
val mocha = Mocha()
|
||||
val testing = mocha<caret>{ (x: Int) -> "hello world" }
|
||||
val testing = mocha<caret>{ x: Int -> "hello world" }
|
||||
}
|
||||
@@ -3,5 +3,5 @@ class Mocha() {
|
||||
}
|
||||
fun main() {
|
||||
val mocha = Mocha()
|
||||
val testing = mocha.invoke{ (x: Int) -> "hello world" }
|
||||
val testing = mocha.invoke{ x: Int -> "hello world" }
|
||||
}
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
// IS_APPLICABLE: false
|
||||
fun foo() {
|
||||
val bar = { (x: Int) -> x + 1 }
|
||||
val bar = { x: Int -> x + 1 }
|
||||
val incremented = listOf(1, 2, 3).<caret>map(bar)
|
||||
}
|
||||
Reference in New Issue
Block a user