mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-11 02:50:15 +08:00
Suppress SMARTCAST_IMPOSSIBLE
This commit is contained in:
parent
67014edc31
commit
a21740ed3c
@ -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<*>)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user