We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d105bf9 commit da757b6Copy full SHA for da757b6
src/Compiler/Checking/CheckPatterns.fs
@@ -460,10 +460,10 @@ and TcRecordPat warnOnUpper (cenv: cenv) env vFlags patEnv ty fieldPats m =
460
let idents =
461
fieldPats
462
|> List.map (fun fieldPat ->
463
- let (|FrontAndBack|) = List.frontAndBack
+ let (|Last|) = List.last
464
match fieldPat with
465
| NamePatPairField (fieldName = SynLongIdent (id = [fieldId]))
466
- | NamePatPairField (fieldName = SynLongIdent (id = FrontAndBack (_, fieldId))) -> fieldId)
+ | NamePatPairField (fieldName = SynLongIdent (id = Last fieldId)) -> fieldId)
467
468
let fieldPats =
469
0 commit comments