mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
19 lines
366 B
Kotlin
Vendored
19 lines
366 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) {
|
|
inner class Child2 : Father.InClass() {
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return Father("fail").Child("OK").Child2().work()
|
|
}
|