[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:
committed by
Space Team
parent
1c7ffb3276
commit
7f9118d0f2
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user