Closed dlurton closed 4 years ago
Such as the following.
override fun copy(annotations: List<String> = this.annotations, metas: MetaContainer = this.metas): AnyElement
This has a narrower return type than the copy on IonElement and would prevent the need for clients to need to call .asAnyElement() on the return value.
copy
IonElement
.asAnyElement()
Actually, this is not possible since the narrower IonElement implementations already has a covariant return type which is narrowed.
Such as the following.
This has a narrower return type than the
copy
onIonElement
and would prevent the need for clients to need to call.asAnyElement()
on the return value.