Skip to content

Commit

Permalink
Add missing internal conversions to bigint (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
mausch authored Oct 3, 2020
1 parent dd2193e commit b1906bb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Hedgehog/Numeric.fs
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,15 @@ type ToBigInt =
static member ToBigInt (x : uint64) =
bigint x

static member ToBigInt (x : single) =
bigint x

static member ToBigInt (x : double) =
bigint x

static member ToBigInt (x : decimal) =
bigint x

static member inline Invoke (x :'Integral) : bigint =
let inline call_2 (a : ^a, b : ^b) =
((^a or ^b) : (static member ToBigInt : _ -> _) b)
Expand Down

0 comments on commit b1906bb

Please sign in to comment.