[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
@@ -0,0 +1,8 @@
// FIR_IDENTICAL
// ISSUE: KT-64625
// !DIAGNOSTICS: -DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE
interface A<T1, T2>
interface B<X> : A<X, <!UNRESOLVED_REFERENCE!>T<!>?>
fun f(x: A<Int, <!UNRESOLVED_REFERENCE!>K<!>?>) = x as B