15 lines
221 B
Plaintext
15 lines
221 B
Plaintext
class Outer() {
|
|
class InnerBase() {
|
|
}
|
|
|
|
class InnerDerived(): InnerBase() {
|
|
}
|
|
|
|
public val foo: InnerBase? = new InnerDerived()
|
|
}
|
|
|
|
fun box() {
|
|
val o = new Outer()
|
|
return if (o.foo === null) "fail" else "OK"
|
|
}
|