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

19 lines
405 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
val capture = "O"
class Local {
val captured = capture
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 = "K") {
override fun result() = capture + s
}
}
return Local().obj.result()
}