Adjust testData to new labels syntax
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user