File tree Expand file tree Collapse file tree 4 files changed +5
-8
lines changed
src/FsToolkit.ErrorHandling
tests/FsToolkit.ErrorHandling.Tests Expand file tree Collapse file tree 4 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ module OptionCE =
101101 /// Needed to allow `for..in` and `for..do` functionality
102102 /// </summary>
103103 // member inline _.Source(s: string) = ValueOption.ofObj s
104- #if NET9_ 0_ OR_ GREATER
104+ #if NET9_ 0_ OR_ GREATER && ! FABLE _ COMPILER
105105
106106 member inline _.Source ( s : #seq<'value> ) = ValueOption.ofObj s
107107#else
Original file line number Diff line number Diff line change 11namespace FsToolkit.ErrorHandling
22
3- #if ! FABLE_ COMPILER
43[<RequireQualifiedAccess>]
54module ValueOption =
65
@@ -147,5 +146,3 @@ module ValueOption =
147146 match input with
148147 | true , x -> ValueSome x
149148 | false , _ -> ValueNone
150-
151- #endif
Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ type CustomClass(x: int) =
320320 member _.getX = x
321321
322322
323- #if NET9_ 0_ OR_ GREATER
323+ #if NET9_ 0_ OR_ GREATER && ! FABLE _ COMPILER
324324
325325type AB = A | B
326326type AbNull = AB | null
@@ -336,7 +336,7 @@ let ``OptionCE inference checks`` =
336336
337337 f ( Some())
338338 |> ignore
339- #if NET9_ 0_ OR_ GREATER
339+ #if NET9_ 0_ OR_ GREATER && ! FABLE _ COMPILER
340340 testCase " Nullable argument should be inferred" <| fun () ->
341341 // Compilation is real success
342342 let y ( p : AbNull ) =
Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ type CustomClass(x: int) =
325325 member _.getX = x
326326
327327
328- #if NET9_ 0_ OR_ GREATER
328+ #if NET9_ 0_ OR_ GREATER && ! FABLE _ COMPILER
329329
330330type AB = A | B
331331type AbNull = AB | null
@@ -342,7 +342,7 @@ let ``ValueOptionCE inference checks`` =
342342
343343 f ( ValueSome())
344344 |> ignore
345- #if NET9_ 0_ OR_ GREATER
345+ #if NET9_ 0_ OR_ GREATER && ! FABLE _ COMPILER
346346 testCase " Nullable argument should be inferred"
347347 <| fun () ->
348348 // Compilation is real success
You can’t perform that action at this time.
0 commit comments