Files
kotlin-fork/compiler/testData/codegen/box/innerNested/superConstructorCall/localExtendsInner.kt
T
2018-06-28 12:26:41 +02:00

22 lines
428 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
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()
}