mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
21 lines
402 B
Kotlin
Vendored
21 lines
402 B
Kotlin
Vendored
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()
|
|
} |