Skip to content

Commit 4079153

Browse files
committed
Result.isOk missing from Fable
1 parent a073207 commit 4079153

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FSharpPlus/Control/Foldable.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ type Length =
425425
static member Length (x: 'T list , [<Optional>]_impl: Length ) = List.length x
426426
static member Length (x: option<'T> , [<Optional>]_impl: Length ) = if x.IsSome then 1 else 0
427427
static member Length (x: voption<'T> , [<Optional>]_impl: Length ) = if x.IsSome then 1 else 0
428-
#if !NET45
428+
#if !NET45 && !FABLE_COMPILER
429429
static member Length (x: Result<_, _> , [<Optional>]_impl: Length ) = if Result.isOk x then 1 else 0
430430
#else
431431
static member Length (x: Result<_, _> , [<Optional>]_impl: Length ) = match x with | Ok _ -> 1 | _ -> 0

0 commit comments

Comments
 (0)