Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/fsharp/whats-new/fsharp-9.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ let getLength (x: string | null) = x.Length // gives a nullability warning since
let len (str: string | null) =
match str with
| null -> -1
| NonNull s -> s.Length // binds a non-null result
| s -> s.Length // binds a non-null result - compiler eliminated "null" after the first clause

// Parameter to a function
let len (str: string | null) =
Expand Down
Loading