Commit 8dabeba4 authored by Him188's avatar Him188

Fix reference

parent 2e39daad
...@@ -103,7 +103,7 @@ kotlin { ...@@ -103,7 +103,7 @@ kotlin {
dependencies { dependencies {
runtimeOnly(files("build/classes/kotlin/jvm/main")) // classpath is not properly set by IDE runtimeOnly(files("build/classes/kotlin/jvm/main")) // classpath is not properly set by IDE
api(kotlinx("serialization-runtime", serializationVersion)) api(kotlinx("serialization-runtime", serializationVersion))
api(kotlinx("serialization-protobuf", serializationVersion)) //api(kotlinx("serialization-protobuf", serializationVersion))
} }
} }
......
...@@ -358,7 +358,7 @@ internal class MemberInfoImpl( ...@@ -358,7 +358,7 @@ internal class MemberInfoImpl(
override val muteTimestamp: Int = jceInfo.dwShutupTimestap?.toInt() ?: 0 override val muteTimestamp: Int = jceInfo.dwShutupTimestap?.toInt() ?: 0
} }
@OptIn(ExperimentalContracts::class) @UseExperimental(ExperimentalContracts::class)
internal fun GroupImpl.Companion.checkIsInstance(expression: Boolean) { internal fun GroupImpl.Companion.checkIsInstance(expression: Boolean) {
contract { contract {
returns() implies expression returns() implies expression
......
...@@ -15,7 +15,6 @@ import io.ktor.utils.io.ByteReadChannel ...@@ -15,7 +15,6 @@ import io.ktor.utils.io.ByteReadChannel
import io.ktor.utils.io.core.ByteReadPacket import io.ktor.utils.io.core.ByteReadPacket
import io.ktor.utils.io.core.Input import io.ktor.utils.io.core.Input
import kotlinx.io.InputStream import kotlinx.io.InputStream
import kotlinx.serialization.InternalSerializationApi
import net.mamoe.mirai.contact.Contact import net.mamoe.mirai.contact.Contact
import net.mamoe.mirai.contact.Group import net.mamoe.mirai.contact.Group
import net.mamoe.mirai.contact.QQ import net.mamoe.mirai.contact.QQ
...@@ -70,7 +69,6 @@ class ExternalImage private constructor( ...@@ -70,7 +69,6 @@ class ExternalImage private constructor(
filename: String filename: String
) : this(width, height, md5, imageFormat, input as Any, input.remaining, filename) ) : this(width, height, md5, imageFormat, input as Any, input.remaining, filename)
@OptIn(InternalSerializationApi::class)
constructor( constructor(
width: Int, width: Int,
height: Int, height: Int,
......
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