FIR: make deeper recursive type alias expansion check (see KT-37000)

This commit is contained in:
Mikhail Glukhikh
2022-03-10 13:49:54 +03:00
committed by Space
parent c8237cb5e2
commit 6ecc97575d
7 changed files with 39 additions and 3 deletions
@@ -0,0 +1,4 @@
FILE: recursiveTypeAlias.kt
public abstract interface Something<D, T : R|() -> Something1<D>|> : R|kotlin/Any| {
}
public final typealias Something1<D> = <ERROR TYPE REF: Loop in supertype: /Something1 -> /Something>
@@ -0,0 +1,2 @@
interface Something<D, T : () -> Something1<D>>
typealias Something1<D> = <!RECURSIVE_TYPEALIAS_EXPANSION!>Something<D, () -> Something1<D>><!>