Commit 56843580 authored by Him188's avatar Him188

Fix compilation error

parent 936ed3ff
......@@ -99,11 +99,10 @@ suspend inline fun <reified T : MessagePacket<*, *>> T.selectMessagesUnit(
*/
@SinceMirai("0.29.0")
@Suppress("unused") // false positive
@OptIn(ExperimentalTypeInference::class)
@BuilderInference
// @BuilderInference // https://youtrack.jetbrains.com/issue/KT-37716
suspend inline fun <reified T : MessagePacket<*, *>, R> T.selectMessages(
timeoutMillis: Long = -1,
@BuilderInference
// @BuilderInference
crossinline selectBuilder: @MessageDsl MessageSelectBuilder<T, R>.() -> Unit
): R = selectMessagesImpl(timeoutMillis, false) { selectBuilder.invoke(this as MessageSelectBuilder<T, R>) }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment