Suppress SMARTCAST_IMPOSSIBLE

This commit is contained in:
Karlatemp 2020-06-20 20:44:53 +08:00
parent 67014edc31
commit a21740ed3c
No known key found for this signature in database
GPG Key ID: 21FBDDF664FF06F8

View File

@ -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<*>)