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

23 lines
426 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
open class Father(val param: String) {
abstract inner class InClass {
fun work(): String {
return param
}
}
inner class Child(p: String) : Father(p) {
fun test(): InClass {
class Local : Father.InClass() {
}
return Local()
}
}
}
fun box(): String {
return Father("fail").Child("OK").test().work()
}