mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
17 lines
266 B
Kotlin
Vendored
17 lines
266 B
Kotlin
Vendored
class Outer() {
|
|
val s = "xyzzy"
|
|
|
|
open inner class InnerBase(public val name: String) {
|
|
}
|
|
|
|
inner class InnerDerived(): InnerBase(s) {
|
|
}
|
|
|
|
val x = InnerDerived()
|
|
}
|
|
|
|
fun box() : String {
|
|
val o = Outer()
|
|
return if (o.x.name != "xyzzy") "fail" else "OK"
|
|
}
|