Files
kotlin-fork/compiler/testData/diagnostics/tests/cyclicHierarchy/javaKotlinJavaCycle.kt
T
Alexander Udalov 9b2291d381 Fix StackOverflowError on cyclic hierarchy Java<->Kotlin
Report errors not only when superclasses are MutableClassDescriptorLite, but
any classes

 #KT-2115 Fixed
2014-04-03 19:04:12 +04:00

18 lines
200 B
Kotlin

// FILE: A.java
interface A extends C {
void foo();
}
// FILE: B.kt
trait B : <!CYCLIC_INHERITANCE_HIERARCHY!>A<!> {
fun bar()
}
// FILE: C.java
interface C extends B {
void baz();
}