RpcTypeInheritance

@Target(allowedTargets = [AnnotationTarget.CLASS])
@RequiresOptIn(level = RequiresOptIn.Level.ERROR, message = "This type is not intended to be inherited by user code, as the library may handle predefined implementations in a special manner. If you need to inherit from this, please describe your use case in https://github.com/Kotlin/kotlinx-rpc/issues/new?template=feature_request.md")
annotation class RpcTypeInheritance(source)

Opt-in marker for subclassing library types that are not intended to be inherited by user code.

Types annotated with @SubclassOptInRequired(RpcTypeInheritance::class) require an explicit opt-in before they can be subclassed. This is used to guard interfaces and classes whose implementations are provided by the library and may change in future versions.