Files
kotlin-fork/compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsInnerDefaultArgument.kt
T
2018-06-09 19:15:38 +03:00

14 lines
263 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
class A {
open inner class Inner(val result: String = "OK", val int: Int)
fun box(): String {
val o = object : Inner(int = 0) {
fun ok() = result
}
return o.ok()
}
}
fun box() = A().box()