[FIR] Check for ConeErrorType in doUnify to prevent endless recursion

^KT-64625 Fixed
This commit is contained in:
Ivan Kochurkin
2024-01-05 14:17:50 +01:00
committed by Space Team
parent 567433cc12
commit 1f0fb5a1a8
7 changed files with 42 additions and 0 deletions
@@ -13031,6 +13031,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
public void testKt24158() throws Exception {
runTest("compiler/testData/diagnostics/tests/exceptions/kt24158.kt");
}
@Test
@TestMetadata("stackOverflowOnDoUnify.kt")
public void testStackOverflowOnDoUnify() throws Exception {
runTest("compiler/testData/diagnostics/tests/exceptions/stackOverflowOnDoUnify.kt");
}
}
@Nested
@@ -13031,6 +13031,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
public void testKt24158() throws Exception {
runTest("compiler/testData/diagnostics/tests/exceptions/kt24158.kt");
}
@Test
@TestMetadata("stackOverflowOnDoUnify.kt")
public void testStackOverflowOnDoUnify() throws Exception {
runTest("compiler/testData/diagnostics/tests/exceptions/stackOverflowOnDoUnify.kt");
}
}
@Nested