15 lines
241 B
Kotlin
Vendored
15 lines
241 B
Kotlin
Vendored
class Outer() {
|
|
open class InnerBase() {
|
|
}
|
|
|
|
class InnerDerived() : InnerBase() {
|
|
}
|
|
|
|
public val foo: InnerBase? = InnerDerived()
|
|
}
|
|
|
|
fun box(): String {
|
|
val o = Outer()
|
|
return if (o.foo === null) "fail" else "OK"
|
|
}
|