KT-3919 Automatic labeling of lambdas by receiving functions

#KT-3919 Fixed
This commit is contained in:
Andrey Breslav
2013-08-22 14:27:01 +04:00
parent 07a8dff5f4
commit 55eb994502
5 changed files with 98 additions and 0 deletions
@@ -2432,6 +2432,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/diagnostics/tests/functionLiterals/return"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("AutoLabels.kt")
public void testAutoLabels() throws Exception {
doTest("compiler/testData/diagnostics/tests/functionLiterals/return/AutoLabels.kt");
}
@TestMetadata("ForbiddenNonLocalReturnNoType.kt")
public void testForbiddenNonLocalReturnNoType() throws Exception {
doTest("compiler/testData/diagnostics/tests/functionLiterals/return/ForbiddenNonLocalReturnNoType.kt");
@@ -1204,6 +1204,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest("compiler/testData/codegen/box/closures/localReturn.kt");
}
@TestMetadata("localReturnWithAutolabel.kt")
public void testLocalReturnWithAutolabel() throws Exception {
doTest("compiler/testData/codegen/box/closures/localReturnWithAutolabel.kt");
}
@TestMetadata("recursiveClosure.kt")
public void testRecursiveClosure() throws Exception {
doTest("compiler/testData/codegen/box/closures/recursiveClosure.kt");