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 /**