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