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 ->
|
||||
return@foo 1
|
||||
return<!LABEL_NAME_CLASH!>@foo<!> 1
|
||||
}
|
||||
return@foo 1
|
||||
}
|
||||
|
||||
@@ -2,9 +2,7 @@ fun f() {
|
||||
foo {(): Int ->
|
||||
bar {
|
||||
(): Int ->
|
||||
// The actual error message should be "return not allowed",
|
||||
// but due to a bug in label resolution it is "unresolved reference"
|
||||
return<!UNRESOLVED_REFERENCE!>@foo<!> 1
|
||||
<!RETURN_NOT_ALLOWED!>return@foo 1<!>
|
||||
}
|
||||
return@foo 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user