Skip to content

Commit da757b6

Browse files
Only need the last one
1 parent d105bf9 commit da757b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Compiler/Checking/CheckPatterns.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,10 +460,10 @@ and TcRecordPat warnOnUpper (cenv: cenv) env vFlags patEnv ty fieldPats m =
460460
let idents =
461461
fieldPats
462462
|> List.map (fun fieldPat ->
463-
let (|FrontAndBack|) = List.frontAndBack
463+
let (|Last|) = List.last
464464
match fieldPat with
465465
| NamePatPairField (fieldName = SynLongIdent (id = [fieldId]))
466-
| NamePatPairField (fieldName = SynLongIdent (id = FrontAndBack (_, fieldId))) -> fieldId)
466+
| NamePatPairField (fieldName = SynLongIdent (id = Last fieldId)) -> fieldId)
467467

468468
let fieldPats =
469469
fieldPats

0 commit comments

Comments
 (0)