Skip to content

Commit

Permalink
Fix for Fin<T>.GetHashCode Throws an Exception when Fin.Succ is False
Browse files Browse the repository at this point in the history
  • Loading branch information
louthy committed Nov 16, 2022
1 parent c8e6ed0 commit c124a20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LanguageExt.Core/Monads/Alternative Value Monads/Fin/Fin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ public bool IsBottom
/// </summary>
public override int GetHashCode() =>
IsSucc
? FNV32.OffsetBasis
: Value.GetHashCode();
? Value.GetHashCode()
: FNV32.OffsetBasis;

[Pure, MethodImpl(Opt.Default)]
public static implicit operator Fin<A>(A value) =>
Expand Down

0 comments on commit c124a20

Please sign in to comment.