Skip to content

Commit b6a094a

Browse files
committed
FABLE and NET45
1 parent 617c009 commit b6a094a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/FSharpPlus/Control/Functor.fs

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ type Iterate =
2222
static member Iterate (x: Lazy<'T> , action) = action x.Value : unit
2323
static member Iterate (x: seq<'T> , action) = Seq.iter action x
2424
static member Iterate (x: option<'T> , action) = Option.iter action x
25+
#if !NET45 && !FABLE_COMPILER_3
2526
static member Iterate (x: voption<'T>, action) = ValueOption.iter action x
27+
#endif
2628
static member Iterate (x: list<'T> , action) = List.iter action x
2729
static member Iterate ((_: 'W, a: 'T), action) = action a :unit
2830
static member Iterate (x: 'T [] , action) = Array.iter action x
@@ -42,7 +44,7 @@ type Iterate =
4244
static member Iterate (x: Async<'T> , action: 'T -> unit) = (x |> Async.map action |> Async.AsTask).Wait ()
4345
#endif
4446
static member Iterate (x: Result<'T, 'E> , action) =
45-
#if !NET45
47+
#if !NET45 && !FABLE_COMPILER_3
4648
Result.iter action x
4749
#else
4850
match x with

0 commit comments

Comments
 (0)