Skip to content

Example code using an invalid pattern? #50818

@jhorv-ci

Description

@jhorv-ci

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.
Those examples are:

match x with
| ?: string | null -> ...

and

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions