We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a073207 commit 4079153Copy full SHA for 4079153
src/FSharpPlus/Control/Foldable.fs
@@ -425,7 +425,7 @@ type Length =
425
static member Length (x: 'T list , [<Optional>]_impl: Length ) = List.length x
426
static member Length (x: option<'T> , [<Optional>]_impl: Length ) = if x.IsSome then 1 else 0
427
static member Length (x: voption<'T> , [<Optional>]_impl: Length ) = if x.IsSome then 1 else 0
428
- #if !NET45
+ #if !NET45 && !FABLE_COMPILER
429
static member Length (x: Result<_, _> , [<Optional>]_impl: Length ) = if Result.isOk x then 1 else 0
430
#else
431
static member Length (x: Result<_, _> , [<Optional>]_impl: Length ) = match x with | Ok _ -> 1 | _ -> 0
0 commit comments