dotnet / dotnet/docs

Example code using an invalid pattern?

Open
#50,818 2 comments 0 reactions 0 assignees View on GitHub
dotnet-fsharp/svc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
15h 21m
Merged PRs (30d)
370

Description

### Type of issue

Typo

### Description

The last 2 examples on the Null Values page use an invalid pattern match pattern `?:`. It doesn't compile for me, nor is it listed on [Pattern Matching](https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/pattern-matching).
Those examples are:

```fsharp
match x with
| ?: string | null -> ...
```
and
```fsharp
match x with
| ?: string
| null -> ...
```

### Page URL

https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/values/null-values

### Content source URL

https://github.com/dotnet/docs/blob/main/docs/fsharp/language-reference/values/null-values.md

### Document Version Independent Id

514581e9-9a8d-3771-928a-5d079c809a42

### Platform Id

626f2dae-4409-1f6f-5da3-ba1bc2b2d59f

### Article author

@BillWagner

### Metadata

* ID: 5ae21b87-1505-41b6-8fc9-1cfa59c90ed5
* PlatformId: 626f2dae-4409-1f6f-5da3-ba1bc2b2d59f
* Service: **dotnet-fsharp**

[Related Issues](https://github.com/dotnet/docs/issues?q=is%3Aissue+is%3Aopen+514581e9-9a8d-3771-928a-5d079c809a42)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.