Skip to content

Commit 6802608

Browse files
committed
Fix fable
1 parent 1f276ac commit 6802608

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

src/FsToolkit.ErrorHandling/OptionCE.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/FsToolkit.ErrorHandling/ValueOption.fs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
namespace FsToolkit.ErrorHandling
22

3-
#if !FABLE_COMPILER
43
[<RequireQualifiedAccess>]
54
module ValueOption =
65

@@ -147,5 +146,3 @@ module ValueOption =
147146
match input with
148147
| true, x -> ValueSome x
149148
| false, _ -> ValueNone
150-
151-
#endif

tests/FsToolkit.ErrorHandling.Tests/OptionCE.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

325325
type AB = A | B
326326
type 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) =

tests/FsToolkit.ErrorHandling.Tests/ValueOptionCE.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

330330
type AB = A | B
331331
type 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

0 commit comments

Comments
 (0)