Files
kotlin/compiler/testData/codegen/box/innerNested/superConstructorCall/localExtendsInner.kt
2019-11-19 11:00:09 +03:00

22 lines
432 B
Kotlin
Vendored

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