Temporarily allow equals & hashCode for SoF to compile bootstrap
equals & hashCode should be removed completely soon anyway
This commit is contained in:
@@ -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
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user