From a21740ed3c34724f1395af592b09f496d8efdb23 Mon Sep 17 00:00:00 2001 From: Karlatemp Date: Sat, 20 Jun 2020 20:44:53 +0800 Subject: [PATCH] Suppress SMARTCAST_IMPOSSIBLE --- .../mamoe/mirai/console/setting/internal/ValueCreatorsImpl.kt | 1 + 1 file changed, 1 insertion(+) 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<*>)