Files
kotlin-fork/compiler/testData/diagnostics/tests/cast/IsRecursionSustainable.fir.kt
T

6 lines
221 B
Kotlin
Vendored

open class RecA<T>: RecB<T>()
open class RecB<T>: <!OTHER_ERROR!>RecA<T><!>()
open class SelfR<T>: <!OTHER_ERROR!>SelfR<T><!>()
fun test(f: SelfR<String>) = f is RecA<String>
fun test(f: RecB<String>) = f is RecA<String>