File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/FsToolkit.ErrorHandling Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 11namespace FsToolkit.ErrorHandling
22
3+ (*
4+ This Polyfills the F# 9.0 and later types for nullability, which are not available in earlier versions of F# or in Fable.
5+ This is useful for keeping compatibility with older versions of F# or when using Fable, which does not support the new nullability features.
6+ *)
7+
8+
39open System
410
511/// Represents errors that occur during application execution. In F# 9.0 and later, this type is marked as nullable.
@@ -63,10 +69,10 @@ type ResizeArrayNull<'T> =
6369module internal Nullness =
6470
6571#if NET9_ 0_ OR_ GREATER && ! FABLE_ COMPILER
66- /// Throw a System.ArgumentNullException if the given value is null exceptio
72+ /// Throw a System.ArgumentNullException if the given value is null exception
6773 let inline nullArgCheck name value = nullArgCheck name value
6874#else
69- /// Throw a System.ArgumentNullException if the given value is null exceptio
75+ /// Throw a System.ArgumentNullException if the given value is null exception
7076 let inline nullArgCheck ( name : string ) ( value : 'T ) : 'T =
7177 if isNull value then
7278 raise ( ArgumentNullException( name))
You can’t perform that action at this time.
0 commit comments