Files
kotlin/compiler/testData/codegen/box/super/superConstructor/objectExtendsLocalInner.kt
2017-09-07 15:18:05 +02:00

18 lines
375 B
Kotlin
Vendored

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()
}