Temporarily allow equals & hashCode for SoF to compile bootstrap

equals & hashCode should be removed completely soon anyway
This commit is contained in:
Mikhail Zarechenskiy
2018-09-06 10:34:34 +03:00
parent 83975bd6ac
commit bc7f13b838
@@ -86,11 +86,13 @@ public inline class SuccessOrFailure<out T> @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
/**