Skip to content

Commit f888031

Browse files
authored
Fix merge conflict (#15927)
1 parent 583b3d0 commit f888031

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Compiler/Service/ServiceParsedInputOps.fs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,13 @@ module ParsedInput =
13261326
|> Option.orElseWith (fun () ->
13271327
// Last resort - check for fun { Field1 = a; F| } ->
13281328
// That is, pos is after the last field and still within braces
1329-
if pats |> List.forall (fun (_, m, _) -> rangeBeforePos m pos) then
1329+
if
1330+
pats
1331+
|> List.forall (fun (_, m, _) ->
1332+
match m with
1333+
| Some m -> rangeBeforePos m pos
1334+
| None -> false)
1335+
then
13301336
let referencedFields = pats |> List.map (fun ((_, x), _, _) -> x.idText, x.idRange)
13311337
Some(CompletionContext.Pattern(PatternContext.RecordFieldIdentifier referencedFields))
13321338
else

0 commit comments

Comments
 (0)