KT-22274 report error/warning on incorrect return target label

This commit is contained in:
Dmitry Petrov
2018-07-24 13:41:37 +03:00
parent 5241b37ad9
commit 6fb913a463
15 changed files with 222 additions and 14 deletions
@@ -4130,6 +4130,16 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
runTest("compiler/testData/diagnostics/tests/controlStructures/localReturnInsidePropertyAccessor.kt");
}
@TestMetadata("notAFunctionLabel_after.kt")
public void testNotAFunctionLabel_after() throws Exception {
runTest("compiler/testData/diagnostics/tests/controlStructures/notAFunctionLabel_after.kt");
}
@TestMetadata("notAFunctionLabel_before.kt")
public void testNotAFunctionLabel_before() throws Exception {
runTest("compiler/testData/diagnostics/tests/controlStructures/notAFunctionLabel_before.kt");
}
@TestMetadata("specialConstructsAndPlatformTypes.kt")
public void testSpecialConstructsAndPlatformTypes() throws Exception {
runTest("compiler/testData/diagnostics/tests/controlStructures/specialConstructsAndPlatformTypes.kt");