Fixed test data for new lambda syntax
This commit is contained in:
-2
@@ -2,7 +2,6 @@
|
||||
|
||||
fun test1(): String {
|
||||
doCall @local {
|
||||
() : String ->
|
||||
throw NullPointerException()
|
||||
<!UNREACHABLE_CODE!>"b3"<!> //unmarked
|
||||
}
|
||||
@@ -12,7 +11,6 @@ fun test1(): String {
|
||||
|
||||
fun test2(nonLocal: String, b: Boolean): String {
|
||||
doCall @local {
|
||||
() : String ->
|
||||
if (b) {
|
||||
return@local "b1"
|
||||
} else {
|
||||
|
||||
@@ -30,7 +30,7 @@ fun test2(s : String) : Int? {
|
||||
22
|
||||
} finally {
|
||||
<!UNUSED_FUNCTION_LITERAL!>{
|
||||
(x : Int) -> x
|
||||
x : Int -> x
|
||||
}<!>
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
package o
|
||||
|
||||
class TestFunctionLiteral {
|
||||
val sum: (Int) -> Int = { (x: Int) ->
|
||||
val sum: (Int) -> Int = { x: Int ->
|
||||
sum(x - 1) + x
|
||||
}
|
||||
val foo: () -> Unit = @l ({ foo() })
|
||||
|
||||
Reference in New Issue
Block a user