Adjust testData to new labels syntax

This commit is contained in:
Denis Zharkov
2015-04-27 14:39:46 +03:00
parent 5977302465
commit 44a55e5bf6
191 changed files with 747 additions and 747 deletions
+4 -4
View File
@@ -1,8 +1,8 @@
class C {
fun f (<warning>a</warning> : Boolean, <warning>b</warning> : Boolean) {
@b (<error descr="[EXPRESSION_EXPECTED] While is not an expression, and only expressions are allowed here">while (true)
@a {
b@ (<error descr="[EXPRESSION_EXPECTED] While is not an expression, and only expressions are allowed here">while (true)
a@ {
<error>break@f</error>
break
break@b
@@ -11,8 +11,8 @@ class C {
<error>continue</error>
@b (<error descr="[EXPRESSION_EXPECTED] While is not an expression, and only expressions are allowed here">while (true)
@a {
b@ (<error descr="[EXPRESSION_EXPECTED] While is not an expression, and only expressions are allowed here">while (true)
a@ {
<error>continue@f</error>
continue
continue@b
+1 -1
View File
@@ -6,7 +6,7 @@ fun unitEmptyReturn() : Unit {return}
fun unitIntReturn() : Unit {return <error>1</error>}
fun unitUnitReturn() : Unit {return Unit}
fun test1() : Any = { <error>return</error> }
fun test2() : Any = @a {return@a 1}
fun test2() : Any = a@ {return@a 1}
fun test3() : Any { <error>return</error> }
fun bbb() {
@@ -8,9 +8,9 @@
fun Char.xx() : Double.() -> Unit {
this : Char
val <warning>a</warning>: Double.() -> Unit = { this : Double + this@xx : Char}
val <warning>b</warning>: Double.() -> Unit = @a{this@a : Double + this@xx : Char}
val <warning>c</warning> = @a{<error>this@a</error> <error>+</error> this@xx : Char}
return (@a{this@a : Double + this@xx : Char})
val <warning>b</warning>: Double.() -> Unit = a@{this@a : Double + this@xx : Char}
val <warning>c</warning> = a@{<error>this@a</error> <error>+</error> this@xx : Char}
return (a@{this@a : Double + this@xx : Char})
}
}
}