aboutsummaryrefslogtreecommitdiff
path: root/interp/notation_ops.ml
diff options
context:
space:
mode:
authorGaëtan Gilbert2018-11-12 12:55:46 +0100
committerGaëtan Gilbert2018-12-05 13:20:58 +0100
commit470943bdf917caf352b5347c8d33fc39699805b0 (patch)
tree02407cc74a5ffe2aa184ebcddb4ea6ab2ea1f920 /interp/notation_ops.ml
parent23f2222bb2c97110b6e55835fd19528177e41ff3 (diff)
Fix mod_subst wrt universe polymorphism
Diffstat (limited to 'interp/notation_ops.ml')
-rw-r--r--interp/notation_ops.ml6
1 files changed, 4 insertions, 2 deletions
diff --git a/interp/notation_ops.ml b/interp/notation_ops.ml
index 7a525f84a5..b41160f758 100644
--- a/interp/notation_ops.ml
+++ b/interp/notation_ops.ml
@@ -530,8 +530,10 @@ let rec subst_notation_constr subst bound raw =
match raw with
| NRef ref ->
let ref',t = subst_global subst ref in
- if ref' == ref then raw else
- fst (notation_constr_of_constr bound t)
+ if ref' == ref then raw else (match t with
+ | None -> NRef ref'
+ | Some t ->
+ fst (notation_constr_of_constr bound t.Univ.univ_abstracted_value))
| NVar _ -> raw