Files
kotlin-fork/compiler/testData/ir/irText/firProblems/OutBox.fir.kt.txt
T

25 lines
366 B
Kotlin
Vendored

class Box<out T : Foo> {
constructor(foo: T) /* primary */ {
super/*Any*/()
/* <init>() */
}
val foo: T
field = foo
get
val str: String
get(): String {
var foo: Foo = <this>.<get-foo>()
when {
foo is Buz -> { // BLOCK
return foo /*as Buz */.#str /*!! String */
}
}
return ""
}
}