e6f4d6e6fa
^KT-65406
25 lines
366 B
Kotlin
Vendored
25 lines
366 B
Kotlin
Vendored
class Box<out T : Foo> {
|
|
val foo: T
|
|
field = foo
|
|
get
|
|
|
|
constructor(foo: T) /* primary */ {
|
|
super/*Any*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
val str: String
|
|
get(): String {
|
|
var foo: Foo = <this>.<get-foo>()
|
|
when {
|
|
foo is Buz -> { // BLOCK
|
|
return foo /*as Buz */.#str /*!! String */
|
|
}
|
|
}
|
|
return ""
|
|
}
|
|
|
|
}
|
|
|