diff options
| author | Maxime Dénès | 2017-03-23 18:55:44 +0100 |
|---|---|---|
| committer | Maxime Dénès | 2017-03-23 18:55:44 +0100 |
| commit | 9dc839ee08d4aef904d95bd358d5486b4964ef4e (patch) | |
| tree | 80f34a0f094d2b432e8cc2c465f9c9cc1c67c8ea /pretyping/patternops.ml | |
| parent | dccc6c5a0d7bb8b8936a8327ae979138c9f13453 (diff) | |
| parent | b1656b1f10501b34ae6a7e147f550710b935e54b (diff) | |
Merge PR#507: Intern names bound in match patterns
Diffstat (limited to 'pretyping/patternops.ml')
| -rw-r--r-- | pretyping/patternops.ml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pretyping/patternops.ml b/pretyping/patternops.ml index fe73b6105b..2090aad8a0 100644 --- a/pretyping/patternops.ml +++ b/pretyping/patternops.ml @@ -404,7 +404,9 @@ let rec pat_of_raw metas vars = function and pats_of_glob_branches loc metas vars ind brs = let get_arg = function - | PatVar(_,na) -> na + | PatVar(_,na) -> + name_iter (fun n -> metas := n::!metas) na; + na | PatCstr(loc,_,_,_) -> err loc (Pp.str "Non supported pattern.") in let rec get_pat indexes = function |
