513af2dfbc
Make smart-casts non-transparent expression without delegation to underlying FirQualifiedAccessExpression, as children delegation in fir tree has unclear semantics Remove two different kinds of tree nodes for smart-casts
25 lines
378 B
Plaintext
Vendored
25 lines
378 B
Plaintext
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 */(super<Buz>).#str /*!! String */
|
|
}
|
|
}
|
|
return ""
|
|
}
|
|
|
|
}
|
|
|