Files
kotlin-fork/compiler/testData/diagnostics/tests/cyclicHierarchy/kotlinJavaKotlinCycle.ll.kt
T
2023-04-19 20:12:41 +00:00

21 lines
420 B
Kotlin
Vendored

// LL_FIR_DIVERGENCE
// The compiler doesn't guarantee exhaustiveness in reporting of inheritance cycles, so the compiler and LL FIR results are equally valid.
// LL_FIR_DIVERGENCE
// FILE: I.kt
open class I : <!CYCLIC_INHERITANCE_HIERARCHY!>K<!>() {
fun foo() {}
}
// FILE: J.java
class J extends I {
void bar() {}
}
// FILE: K.kt
open class K : <!CYCLIC_INHERITANCE_HIERARCHY!>J<!>() {
fun baz() {}
}