65ea4e184a
- 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
22 lines
408 B
Plaintext
Vendored
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 ""
|
|
}
|
|
|
|
}
|