From 9d3a7804ccc91adaf26f85e5267f45c8fa0c84dd Mon Sep 17 00:00:00 2001 From: svtk Date: Tue, 19 Nov 2013 22:08:55 +0400 Subject: [PATCH] Fixed tests for labels. The bug was automatically fixed by previous commit. --- .../diagnostics/tests/functionLiterals/return/AutoLabels.kt | 2 +- .../tests/functionLiterals/return/AutoLabelsNonLocal.kt | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/compiler/testData/diagnostics/tests/functionLiterals/return/AutoLabels.kt b/compiler/testData/diagnostics/tests/functionLiterals/return/AutoLabels.kt index 1cb5d2d3816..8905e01d23a 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/return/AutoLabels.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/return/AutoLabels.kt @@ -13,7 +13,7 @@ fun f() { foo {(): Int -> foo { (): Int -> - return@foo 1 + return@foo 1 } return@foo 1 } diff --git a/compiler/testData/diagnostics/tests/functionLiterals/return/AutoLabelsNonLocal.kt b/compiler/testData/diagnostics/tests/functionLiterals/return/AutoLabelsNonLocal.kt index a13a41fe6f5..5b07f2a88c6 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/return/AutoLabelsNonLocal.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/return/AutoLabelsNonLocal.kt @@ -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@foo 1 + return@foo 1 } return@foo 1 }