-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Description
This document has the following code:
// OK
match l with
| { him = x; her = "Posh" } :: tail -> _
| _ :: tail -> findDavid tail
| [] -> failwith "Couldn't find David"
// Not OK
match l with
| { him = x; her = "Posh" } :: tail -> _
| _ :: tail -> findDavid tail
| [] -> failwith "Couldn't find David"But this can never be valid F#. The offending part is -> _, which is (as of yet) not allowed syntax.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 8c09996f-24ac-cf39-ef43-d7909cbc2b89
- Version Independent ID: 1efdd523-8552-6421-e149-74f76826ef8f
- Content: F# code formatting guidelines
- Content Source: docs/fsharp/style-guide/formatting.md
- Product: dotnet-fsharp
- GitHub Login: @cartermp
- Microsoft Alias: phcart