From bc7f13b838ea8851c045531a21eba3fe3705471e Mon Sep 17 00:00:00 2001 From: Mikhail Zarechenskiy Date: Thu, 6 Sep 2018 10:34:34 +0300 Subject: [PATCH] Temporarily allow equals & hashCode for SoF to compile bootstrap equals & hashCode should be removed completely soon anyway --- libraries/stdlib/coroutines/src/kotlin/SuccessOrFailure.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/stdlib/coroutines/src/kotlin/SuccessOrFailure.kt b/libraries/stdlib/coroutines/src/kotlin/SuccessOrFailure.kt index aed058fab66..97a10338759 100644 --- a/libraries/stdlib/coroutines/src/kotlin/SuccessOrFailure.kt +++ b/libraries/stdlib/coroutines/src/kotlin/SuccessOrFailure.kt @@ -86,11 +86,13 @@ public inline class SuccessOrFailure @PublishedApi internal constructor( /** * Returns `true` if the [other] object is `SuccessOrFailure` that encapsulates an equal value or exception. */ + @Suppress("RESERVED_MEMBER_INSIDE_INLINE_CLASS") public override fun equals(other: Any?): Boolean = other is SuccessOrFailure<*> && value == other.value /** * Returns hashcode of either the encapsulated value or of the exception. */ + @Suppress("RESERVED_MEMBER_INSIDE_INLINE_CLASS") public override fun hashCode(): Int = value?.hashCode() ?: 0 /**