[FIR] Fix IAE in TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM
IllegalArgumentException: class org.jetbrains.kotlin.psi.KtLambdaArgument is not a subtype of class org.jetbrains.kotlin.psi.KtExpression for factory TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM was reported when TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM was reported on a FirLambdaArgumentExpression, report it on its `expression` instead. #KT-60380 Fixed
This commit is contained in:
committed by
Space Team
parent
f7352585f4
commit
393a5d6c14
+6
@@ -1925,6 +1925,12 @@ public class DiagnosticCompilerTestFirTestdataTestGenerated extends AbstractDiag
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/qualifiedSupertypeExtendedByOtherSupertype.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("recursiveProblemWithSyntaxError.kt")
|
||||
public void testRecursiveProblemWithSyntaxError() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/recursiveProblemWithSyntaxError.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("redundantModifier.kt")
|
||||
public void testRedundantModifier() throws Exception {
|
||||
|
||||
+6
@@ -1925,6 +1925,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFirTestDataTestGenerated
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/qualifiedSupertypeExtendedByOtherSupertype.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("recursiveProblemWithSyntaxError.kt")
|
||||
public void testRecursiveProblemWithSyntaxError() throws Exception {
|
||||
runTest("compiler/fir/analysis-tests/testData/resolve/diagnostics/recursiveProblemWithSyntaxError.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("redundantModifier.kt")
|
||||
public void testRedundantModifier() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user