Files
kotlin/compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInner.kt
2016-07-21 19:10:42 +03:00

15 lines
238 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
class A {
open inner class Inner(val result: String)
fun box(): String {
val o = object : Inner("OK") {
fun ok() = result
}
return o.ok()
}
}
fun box() = A().box()