Files
kotlin-fork/compiler/testData/ir/irText/firProblems/JCTree.fir.kt.txt
T
Dmitriy Novozhilov 65ea4e184a [FIR] Fix enhancement of FlexibleNullability and EnhancedNullability
- Add utilities to add new attribute to ConeAttributes
- Get rid of FlexibleNullability attribute (it can be easily inferred
    for any flexible type at any moment)
- Fix determining of EnhancedNullability attribute
2021-03-11 13:10:04 +03:00

22 lines
408 B
Plaintext
Vendored

class Owner<out T : JCTree> {
constructor(tree: T) /* primary */ {
super/*Any*/()
/* <init>() */
}
val tree: T
field = tree
get
val foo: String
get(): String {
var tree: JCTree = <this>.<get-tree>()
when {
tree /*as T */ is JCTypeApply -> return tree /*as T */ /*as JCTypeApply */.#clazz /*!! @FlexibleNullability String */
}
return ""
}
}