mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
15 lines
239 B
Kotlin
15 lines
239 B
Kotlin
class Outer() {
|
|
open inner class InnerBase() {
|
|
}
|
|
|
|
inner class InnerDerived(): InnerBase() {
|
|
}
|
|
|
|
public val foo: InnerBase? = InnerDerived()
|
|
}
|
|
|
|
fun box() : String {
|
|
val o = Outer()
|
|
return if (o.foo === null) "fail" else "OK"
|
|
}
|