Files
kotlin-fork/compiler/testData/codegen/box/super/superConstructor/objectExtendsInner.kt
T
2019-11-19 11:00:09 +03:00

16 lines
340 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
open class Foo(val value: String) {
open inner class Inner(val d: Double = -1.0, val s: String, vararg val y: Int) {
open fun result() = "Fail"
}
val obj = object : Inner(s = "O") {
override fun result() = s + value
}
}
fun box(): String {
return Foo("K").obj.result()
}