From ddf8ecf744649256e185fedee70ef314b8ebbcaa Mon Sep 17 00:00:00 2001 From: Him188 Date: Thu, 28 May 2020 13:54:19 +0800 Subject: [PATCH] Fix build --- .../mamoe/mirai/utils/internal/DeferredReusableInput.jvm.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/utils/internal/DeferredReusableInput.jvm.kt b/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/utils/internal/DeferredReusableInput.jvm.kt index 8373e3543..94fda1183 100644 --- a/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/utils/internal/DeferredReusableInput.jvm.kt +++ b/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/utils/internal/DeferredReusableInput.jvm.kt @@ -5,7 +5,6 @@ import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext import kotlinx.io.core.Input import net.mamoe.mirai.utils.FileCacheStrategy -import net.mamoe.mirai.utils.MiraiExperimentalAPI import java.awt.image.BufferedImage import java.net.URL @@ -45,5 +44,9 @@ internal actual class DeferredReusableInput actual constructor( return delegate?.writeTo(out) ?: error("DeferredReusableInput not yet initialized") } + override fun asInput(): Input { + return delegate?.asInput() ?: error("DeferredReusableInput not yet initialized") + } + actual val initialized: Boolean get() = delegate != null } \ No newline at end of file