Fixed tests for labels.
The bug was automatically fixed by previous commit.
This commit is contained in:
@@ -13,7 +13,7 @@ fun f() {
|
|||||||
foo {(): Int ->
|
foo {(): Int ->
|
||||||
foo {
|
foo {
|
||||||
(): Int ->
|
(): Int ->
|
||||||
return@foo 1
|
return<!LABEL_NAME_CLASH!>@foo<!> 1
|
||||||
}
|
}
|
||||||
return@foo 1
|
return@foo 1
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,9 +2,7 @@ fun f() {
|
|||||||
foo {(): Int ->
|
foo {(): Int ->
|
||||||
bar {
|
bar {
|
||||||
(): Int ->
|
(): Int ->
|
||||||
// The actual error message should be "return not allowed",
|
<!RETURN_NOT_ALLOWED!>return@foo 1<!>
|
||||||
// but due to a bug in label resolution it is "unresolved reference"
|
|
||||||
return<!UNRESOLVED_REFERENCE!>@foo<!> 1
|
|
||||||
}
|
}
|
||||||
return@foo 1
|
return@foo 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user