From 37cea58a1929d620d3be622f88d3502a9a7d1ec9 Mon Sep 17 00:00:00 2001 From: Him188 Date: Thu, 20 Feb 2020 13:18:59 +0800 Subject: [PATCH] Fix ambiguous `eq` --- .../commonMain/kotlin/net.mamoe.mirai/message/data/Message.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/Message.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/Message.kt index 4234275ce..7614f5d4c 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/Message.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/Message.kt @@ -57,7 +57,7 @@ interface Message { */ interface Key - infix fun eq(other: Message): Boolean = this == other + infix fun eq(other: Message): Boolean = this.toString() == other.toString() /** * 将 [toString] 与 [other] 比较