diff --git a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/setting/internal/ValueCreatorsImpl.kt b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/setting/internal/ValueCreatorsImpl.kt index e6d80c495..eece6fca3 100644 --- a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/setting/internal/ValueCreatorsImpl.kt +++ b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/setting/internal/ValueCreatorsImpl.kt @@ -19,6 +19,7 @@ import kotlin.reflect.full.isSubclassOf @PublishedApi +@Suppress("UnsafeCall", "SMARTCAST_IMPOSSIBLE") internal fun Setting.valueFromKTypeImpl(type: KType): Value<*> { require(type.classifier is KClass<*>)