[FIR] Resolve property return type before resolving its annotations

This fixes TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM in a declaration
like `@Ann(myConst) const val myConst = ""`.

#KT-58080 Fixed
This commit is contained in:
Kirill Rakhman
2023-05-05 17:11:57 +02:00
committed by Space Team
parent 1c7ffb3276
commit 7f9118d0f2
7 changed files with 46 additions and 13 deletions
@@ -24902,6 +24902,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/properties"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
}
@Test
@TestMetadata("constAnnotationCycle.kt")
public void testConstAnnotationCycle() throws Exception {
runTest("compiler/testData/diagnostics/tests/properties/constAnnotationCycle.kt");
}
@Test
@TestMetadata("extensionPropertyMustHaveAccessorsOrBeAbstract.kt")
public void testExtensionPropertyMustHaveAccessorsOrBeAbstract() throws Exception {
@@ -24902,6 +24902,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/properties"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(reversed|fir|ll)\\.kts?$"), true, "multiplatform");
}
@Test
@TestMetadata("constAnnotationCycle.kt")
public void testConstAnnotationCycle() throws Exception {
runTest("compiler/testData/diagnostics/tests/properties/constAnnotationCycle.kt");
}
@Test
@TestMetadata("extensionPropertyMustHaveAccessorsOrBeAbstract.kt")
public void testExtensionPropertyMustHaveAccessorsOrBeAbstract() throws Exception {