Fix build

This commit is contained in:
Him188 2020-03-01 15:34:38 +08:00
parent 83faf81fb2
commit b18cb2d30c

View File

@ -64,9 +64,9 @@ interface MessageChain : Message, Iterable<SingleMessage> {
* 遍历每一个有内容的消息, [At], [AtAll], [PlainText], [Image], [Face], [XMLMessage]. * 遍历每一个有内容的消息, [At], [AtAll], [PlainText], [Image], [Face], [XMLMessage].
* 仅供 `Java` 使用 * 仅供 `Java` 使用
*/ */
@Suppress("FunctionName", "INAPPLICABLE_JVM_NAME")
@JsName("forEachContent") @JsName("forEachContent")
@JvmName("forEachContent") @JvmName("forEachContent")
@Suppress("FunctionName")
@MiraiInternalAPI @MiraiInternalAPI
fun `__forEachContent for Java__`(block: (Message) -> Unit) { fun `__forEachContent for Java__`(block: (Message) -> Unit) {
this.foreachContent(block) this.foreachContent(block)
@ -263,6 +263,8 @@ fun Sequence<Message>.asMessageChain(): MessageChain = MessageChainImplBySequenc
*/ */
fun Iterable<Message>.flatten(): Sequence<SingleMessage> = asSequence().flatten() fun Iterable<Message>.flatten(): Sequence<SingleMessage> = asSequence().flatten()
@JsName("flatten1") // avoid platform declare clash
@JvmName("flatten1")
@JvmSynthetic @JvmSynthetic
fun Iterable<SingleMessage>.flatten(): Sequence<SingleMessage> = this.asSequence() // fast path fun Iterable<SingleMessage>.flatten(): Sequence<SingleMessage> = this.asSequence() // fast path
@ -280,6 +282,8 @@ fun Iterable<SingleMessage>.flatten(): Sequence<SingleMessage> = this.asSequence
*/ */
fun Sequence<Message>.flatten(): Sequence<SingleMessage> = flatMap { it.flatten() } fun Sequence<Message>.flatten(): Sequence<SingleMessage> = flatMap { it.flatten() }
@JsName("flatten1") // avoid platform declare clash
@JvmName("flatten1")
@JvmSynthetic @JvmSynthetic
fun Sequence<SingleMessage>.flatten(): Sequence<SingleMessage> = this // fast path fun Sequence<SingleMessage>.flatten(): Sequence<SingleMessage> = this // fast path