From 2295e832bbd15f054e6246dd0a863ea80d8d0d52 Mon Sep 17 00:00:00 2001 From: Him188 Date: Sun, 10 May 2020 19:46:25 +0800 Subject: [PATCH] Pass @ExperimentalCoroutinesApi to the caller of Message.plus(Flow) --- .../commonMain/kotlin/net.mamoe.mirai/message/data/Message.kt | 2 ++ 1 file changed, 2 insertions(+) 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 fe9355b86..7c328b9e9 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 @@ -16,6 +16,7 @@ package net.mamoe.mirai.message.data +import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.fold import net.mamoe.mirai.contact.Contact @@ -246,6 +247,7 @@ inline operator fun Message.plus(another: Sequence): MessageChain = @JvmSynthetic inline operator fun Message.plus(another: MessageChain): MessageChain = this + another as Message +@ExperimentalCoroutinesApi @HidesMembers @JvmSynthetic suspend inline operator fun Message.plus(another: Flow): MessageChain =