[FIR] Implement RECURSIVE_TYPEALIAS_EXPANSION, CYCLIC_INHERITANCE_HIERARCHY diagnostics, fix stackoverlow exception in case if typealias points to type with type arguments
This commit is contained in:
committed by
teamcityserver
parent
d1531f9cdd
commit
c4c2fbb5a0
@@ -1,6 +1,6 @@
|
||||
open class RecA<T>: RecB<T>()
|
||||
open class RecB<T>: <!OTHER_ERROR!>RecA<T><!>()
|
||||
open class SelfR<T>: <!OTHER_ERROR!>SelfR<T><!>()
|
||||
open class RecA<T>: <!CYCLIC_INHERITANCE_HIERARCHY!>RecB<T><!>()
|
||||
open class RecB<T>: <!CYCLIC_INHERITANCE_HIERARCHY!>RecA<T><!>()
|
||||
open class SelfR<T>: <!CYCLIC_INHERITANCE_HIERARCHY!>SelfR<T><!>()
|
||||
|
||||
fun test(f: SelfR<String>) = f is RecA<String>
|
||||
fun test(f: RecB<String>) = f is RecA<String>
|
||||
fun test(f: RecB<String>) = f is RecA<String>
|
||||
|
||||
Reference in New Issue
Block a user