aboutsummaryrefslogtreecommitdiff
path: root/interp/notation.ml
diff options
context:
space:
mode:
authorJason Gross2019-03-31 15:00:00 -0400
committerJason Gross2019-04-01 11:08:54 -0400
commit67e93e9ff5e5b1723ff62da8a82782e5030b5721 (patch)
tree6ee0ab4995f5ec9a400b8f0cb36ce51feee62f1d /interp/notation.ml
parentb0f8e09c3212fa96934817e7ca99465cd634f57c (diff)
[numeral] Add a case for IndRef in constr_of_glob
Fixes #9840
Diffstat (limited to 'interp/notation.ml')
-rw-r--r--interp/notation.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/interp/notation.ml b/interp/notation.ml
index cdc2594454..b5e91b17e6 100644
--- a/interp/notation.ml
+++ b/interp/notation.ml
@@ -632,6 +632,9 @@ let rec constr_of_glob env sigma g = match DAst.get g with
| Glob_term.GRef (ConstructRef c, _) ->
let sigma,c = Evd.fresh_constructor_instance env sigma c in
sigma,mkConstructU c
+ | Glob_term.GRef (IndRef c, _) ->
+ let sigma,c = Evd.fresh_inductive_instance env sigma c in
+ sigma,mkIndU c
| Glob_term.GApp (gc, gcl) ->
let sigma,c = constr_of_glob env sigma gc in
let sigma,cl = List.fold_left_map (constr_of_glob env) sigma gcl in