Skip to content

Commit 7f61b46

Browse files
committed
In matching, forbib the capture any variable
1 parent 782eb5c commit 7f61b46

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ecMatching.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -946,8 +946,7 @@ module FPosition = struct
946946
doit pos (`WithCtxt (ctxt, b :: fs))
947947

948948
| Fquant (_, b, f) ->
949-
let xs = List.pmap (function (x, GTty _) -> Some x | _ -> None) b in
950-
let ctxt = List.fold_left ((^~) Sid.add) ctxt xs in
949+
let ctxt = List.fold_left ((^~) Sid.add) ctxt (List.fst b) in
951950
doit pos (`WithCtxt (ctxt, [f]))
952951

953952
| Flet (lp, f1, f2) ->

0 commit comments

Comments
 (0)