Deprecate ambiguous cases in FE 1.0: companion property vs enum entry

^KT-37591 Fixed
This commit is contained in:
Denis.Zharkov
2021-06-16 18:58:34 +03:00
committed by TeamCityServer
parent 24bb9a4e14
commit 46b297477c
10 changed files with 159 additions and 1 deletions
@@ -23273,6 +23273,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
runTest("compiler/testData/diagnostics/tests/resolve/parameterAsDefaultValueInLocalFunction.kt");
}
@Test
@TestMetadata("propertyInCompanionOfEnum.kt")
public void testPropertyInCompanionOfEnum() throws Exception {
runTest("compiler/testData/diagnostics/tests/resolve/propertyInCompanionOfEnum.kt");
}
@Test
@TestMetadata("resolveAnnotatedLambdaArgument.kt")
public void testResolveAnnotatedLambdaArgument() throws Exception {
@@ -23273,6 +23273,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
runTest("compiler/testData/diagnostics/tests/resolve/parameterAsDefaultValueInLocalFunction.kt");
}
@Test
@TestMetadata("propertyInCompanionOfEnum.kt")
public void testPropertyInCompanionOfEnum() throws Exception {
runTest("compiler/testData/diagnostics/tests/resolve/propertyInCompanionOfEnum.kt");
}
@Test
@TestMetadata("resolveAnnotatedLambdaArgument.kt")
public void testResolveAnnotatedLambdaArgument() throws Exception {