We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ac6387 commit 407f348Copy full SHA for 407f348
docs/fsharp/whats-new/fsharp-9.md
@@ -33,7 +33,7 @@ let getLength (x: string | null) = x.Length // gives a nullability warning since
33
let len (str: string | null) =
34
match str with
35
| null -> -1
36
- | NonNull s -> s.Length // binds a non-null result
+ | s -> s.Length // binds a non-null result - compiler eliminated "null" after the first clause
37
38
// Parameter to a function
39
0 commit comments