Skip to content

Misleading syntax description #12315

@voroninp

Description

@voroninp
// Complete active pattern definition.
let (|identifer1|identifier2|...|) [ arguments ] = expression
// Partial active pattern definition.
let (|identifier|_|) [ arguments ] = expression

It should be

// Complete active pattern definition.
let (|identifer1|identifier2|...|) valueToMatch = expression //of type FSharp.Core.Choice<_,...,_> based on the number of case names. In F#, the limitation n ≤ 7 applies.
let (|identifier|) [arguments] valueToMatch= expression //of any type
// Partial active pattern definition.
let (|identifier|_|) [arguments ] valueToMatch = expression //of type FSharp.Core.option<_>

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions