diff options
| author | Pierre-Marie Pédrot | 2020-10-13 10:55:24 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2020-10-13 10:55:24 +0200 |
| commit | 471da91fbef6656baf616b04a7f41a5440e52a52 (patch) | |
| tree | 5c8b5eb96d242a8dcd05e3e3be9c123d54c92d0a /interp/constrextern.ml | |
| parent | 420368af6d3366ebb843b59c1d1d0b6e58e43dad (diff) | |
| parent | a6d52d2502c09e8acdca464faf67d3956448cbcf (diff) | |
Merge PR #13099: Locating pattern identifiers (?id) by default at parsing time and use location in some typing error messages
Reviewed-by: ppedrot
Diffstat (limited to 'interp/constrextern.ml')
| -rw-r--r-- | interp/constrextern.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/interp/constrextern.ml b/interp/constrextern.ml index 167ea3ecdf..e5a60769e8 100644 --- a/interp/constrextern.ml +++ b/interp/constrextern.ml @@ -978,7 +978,7 @@ let rec extern inctx ?impargs scopes vars r = if !print_meta_as_hole then CHole (None, IntroAnonymous, None) else (match kind with | Evar_kinds.SecondOrderPatVar n -> CPatVar n - | Evar_kinds.FirstOrderPatVar n -> CEvar (n,[])) + | Evar_kinds.FirstOrderPatVar n -> CEvar (CAst.make n,[])) | GApp (f,args) -> (match DAst.get f with @@ -1391,7 +1391,7 @@ let rec glob_of_pat avoid env sigma pat = DAst.make @@ match pat with | None -> Id.of_string "__" | Some id -> id in - GEvar (id,List.map (on_snd (glob_of_pat avoid env sigma)) l) + GEvar (CAst.make id,List.map (fun (id,c) -> (CAst.make id, glob_of_pat avoid env sigma c)) l) | PRel n -> let id = try match lookup_name_of_rel n env with | Name id -> id |
