From 179c89b48fe124f2f5370bbc1b9066194d94975e Mon Sep 17 00:00:00 2001 From: Him188 Date: Fri, 18 Sep 2020 20:06:03 +0800 Subject: [PATCH] Fix Pair and Triple values --- .../net/mamoe/mirai/console/internal/data/valueFromKTypeImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/data/valueFromKTypeImpl.kt b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/data/valueFromKTypeImpl.kt index feec64e53..037c65ba5 100644 --- a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/data/valueFromKTypeImpl.kt +++ b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/data/valueFromKTypeImpl.kt @@ -143,7 +143,7 @@ internal fun KClass<*>.isPrimitiveOrBuiltInSerializableValue(): Boolean { Byte::class, Short::class, Int::class, Long::class, Boolean::class, Char::class, String::class, - Pair::class, Triple::class // TODO: 2020/6/24 支持 PairValue, TripleValue + //Pair::class, Triple::class // TODO: 2020/6/24 支持 PairValue, TripleValue -> return true }