diff --git a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/extension/AbstractExtensionPoint.kt b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/extension/AbstractExtensionPoint.kt index f6ddcc561..be6b244ee 100644 --- a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/extension/AbstractExtensionPoint.kt +++ b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/extension/AbstractExtensionPoint.kt @@ -22,7 +22,7 @@ import kotlin.internal.LowPriorityInOverloadResolution import kotlin.reflect.KClass @ConsoleExperimentalAPI -public open class AbstractExtensionPoint( +public open class AbstractExtensionPoint( @ConsoleExperimentalAPI public val type: KClass ) { @@ -110,6 +110,8 @@ internal fun AbstractExtensionPoint.throwExtensionException( ) } +internal fun AbstractExtensionPoint + internal inline fun AbstractExtensionPoint.useExtensions(block: (extension: T) -> Unit): Unit = withExtensions(block)