Files
kotlin-fork/compiler/testData/diagnostics/tests/cyclicHierarchy/kt303.fir.kt
T

13 lines
194 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
// KT-303 Stack overflow on a cyclic class hierarchy
open class Foo() : Bar() {
val a : Int = 1
}
open class Bar() : <!OTHER_ERROR!>Foo<!>() {
}
val x : Int = Foo()