diff options
| author | coqbot-app[bot] | 2021-01-09 12:34:12 +0000 |
|---|---|---|
| committer | GitHub | 2021-01-09 12:34:12 +0000 |
| commit | 723440611965ccdecfd56e61c8f1f8618a08841d (patch) | |
| tree | 9d3582f11361a788c7f60568fb95d112839eec1e /vernac/metasyntax.ml | |
| parent | 7b946aa196490be8790cd5b46d0860b3bf6e33e1 (diff) | |
| parent | 70d557994583bd081787e28f68d627a0833eb9c0 (diff) | |
Merge PR #13299: Remember universe instances of constants in notations
Reviewed-by: SkySkimmer
Reviewed-by: herbelin
Diffstat (limited to 'vernac/metasyntax.ml')
| -rw-r--r-- | vernac/metasyntax.ml | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/vernac/metasyntax.ml b/vernac/metasyntax.ml index e6244ee3b5..2fe402ff08 100644 --- a/vernac/metasyntax.ml +++ b/vernac/metasyntax.ml @@ -1793,15 +1793,9 @@ let remove_delimiters local scope = let add_class_scope local scope cl = Lib.add_anonymous_leaf (inScopeCommand(local,scope,ScopeClasses cl)) -(* Check if abbreviation to a name and avoid early insertion of - maximal implicit arguments *) -let try_interp_name_alias = function - | [], { CAst.v = CRef (ref,_) } -> intern_reference ref - | _ -> raise Not_found - let add_syntactic_definition ~local deprecation env ident (vars,c) { onlyparsing } = let acvars,pat,reversibility = - try Id.Map.empty, NRef (try_interp_name_alias (vars,c)), APrioriReversible + try Id.Map.empty, try_interp_name_alias (vars,c), APrioriReversible with Not_found -> let fold accu id = Id.Map.add id NtnInternTypeAny accu in let i_vars = List.fold_left fold Id.Map.empty vars in |
