mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
15 lines
356 B
Kotlin
Vendored
15 lines
356 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
open class A(val s: String) {
|
|
open inner class B(s: String): A(s)
|
|
|
|
open inner class C(s: String, additional: Double): B(s)
|
|
|
|
open inner class D(other: Int, another: Long, s: String) : C(s, another.toDouble())
|
|
|
|
open inner class E : D(0, 42L, "OK")
|
|
|
|
inner class F : E()
|
|
}
|
|
|
|
fun box(): String = A("Fail").F().s
|