NotStableForInheritance

annotation class NotStableForInheritance(val message: String = "This declaration is not stable for inheritance.")

标记一个定义在使用上是稳定的 (如果没有特殊说明), 但只应该由 mirai 内部实现.

用户自行实现将可能造成对未来版本的不兼容, 因为新的抽象函数或属性会在未经警告的前提下添加. 自行实现还可能因 mirai 内部实现有部分硬编码成分而不兼容.

Since

2.7

Constructors

Link copied to clipboard
fun NotStableForInheritance(message: String = "This declaration is not stable for inheritance.")

Properties

Link copied to clipboard
val message: String