diff --git a/src/FsToolkit.ErrorHandling/List.fs b/src/FsToolkit.ErrorHandling/List.fs index b99f422e..0d48860d 100644 --- a/src/FsToolkit.ErrorHandling/List.fs +++ b/src/FsToolkit.ErrorHandling/List.fs @@ -164,6 +164,7 @@ module List = let sequenceAsyncOptionM xs = traverseAsyncOptionM id xs +#if !FABLE_COMPILER let rec private traverseVOptionM' (state: voption<_>) (f: _ -> voption<_>) xs = match xs with | [] -> @@ -184,3 +185,5 @@ module List = let traverseVOptionM f xs = traverseVOptionM' (ValueSome []) f xs let sequenceVOptionM xs = traverseVOptionM id xs + +#endif diff --git a/tests/FsToolkit.ErrorHandling.Tests/List.fs b/tests/FsToolkit.ErrorHandling.Tests/List.fs index 27b005f7..7ae8536b 100644 --- a/tests/FsToolkit.ErrorHandling.Tests/List.fs +++ b/tests/FsToolkit.ErrorHandling.Tests/List.fs @@ -547,6 +547,7 @@ let sequenceAsyncResultATests = } ] +#if !FABLE_COMPILER let traverseVOptionMTests = testList "List.traverseVOptionM Tests" [ let tryTweetVOption x = @@ -611,6 +612,8 @@ let sequenceVOptionMTests = Expect.equal actual ValueNone "traverse the list and return value none" ] +#endif + let allTests = testList "List Tests" [ traverseResultMTests @@ -627,6 +630,8 @@ let allTests = sequenceAsyncResultMTests sequenceAsyncOptionMTests sequenceAsyncResultATests +#if !FABLE_COMPILER traverseVOptionMTests sequenceVOptionMTests +#endif ]