Skip to content

Commit a899a02

Browse files
committed
support fable
1 parent ea9e4eb commit a899a02

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/FsToolkit.ErrorHandling/Nullness.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ namespace FsToolkit.ErrorHandling
22
open System
33

44
type ExceptionNull =
5-
#if NET9_0
5+
#if NET9_0 && !FABLE_COMPILER
66
Exception | null
77
#else
88
Exception
99
#endif
1010

1111
type IDisposableNull =
12-
#if NET9_0
12+
#if NET9_0 && !FABLE_COMPILER
1313
IDisposable | null
1414
#else
1515
IDisposable
1616
#endif
1717

1818
type IAsyncDisposableNull =
19-
#if NET9_0
19+
#if NET9_0 && !FABLE_COMPILER
2020
IAsyncDisposable | null
2121
#else
2222
IAsyncDisposable

tests/FsToolkit.ErrorHandling.Tests/TestHelpers.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ module TestHelpers =
1313
}
1414

1515
type MemoryStreamNull =
16-
#if NET9_0
16+
#if NET9_0 && !FABLE_COMPILER
1717
System.IO.MemoryStream | null
1818
#else
1919
System.IO.MemoryStream
2020
#endif
2121

2222
type UriNull =
23-
#if NET9_0
23+
#if NET9_0 && !FABLE_COMPILER
2424
System.Uri | null
2525
#else
2626
System.Uri

0 commit comments

Comments
 (0)