Fixed tests for labels.

The bug was automatically fixed by previous commit.
This commit is contained in:
svtk
2013-11-19 22:08:55 +04:00
parent ca1650d31d
commit 9d3a7804cc
2 changed files with 2 additions and 4 deletions
@@ -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
} }