[FE] Fix: do not report ambiguous label if label map is empty

This commit is contained in:
Anastasia.Shadrina
2021-12-21 01:00:04 +07:00
committed by teamcity
parent 8905586cbb
commit ea33da3a8d
7 changed files with 37 additions and 1 deletions
@@ -10654,6 +10654,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/extensions/contextReceivers/insideDeclaration.kt");
}
@Test
@TestMetadata("labelFromFunctionName.kt")
public void testLabelFromFunctionName() throws Exception {
runTest("compiler/testData/diagnostics/tests/extensions/contextReceivers/labelFromFunctionName.kt");
}
@Test
@TestMetadata("labelsFromClassNameForbidden.kt")
public void testLabelsFromClassNameForbidden() throws Exception {