Fixed test data for new lambda syntax

This commit is contained in:
Stanislav Erokhin
2015-03-18 00:25:06 +03:00
parent 371908a280
commit 43e24f6b0d
54 changed files with 103 additions and 113 deletions
@@ -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
}<!>
}
}
@@ -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() })