Fix StackOverflowError on cyclic hierarchy Java<->Kotlin

Report errors not only when superclasses are MutableClassDescriptorLite, but
any classes

 #KT-2115 Fixed
This commit is contained in:
Alexander Udalov
2014-04-02 22:08:24 +04:00
parent 4241eb9661
commit 9b2291d381
9 changed files with 114 additions and 41 deletions
@@ -0,0 +1,17 @@
// 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();
}