aboutsummaryrefslogtreecommitdiff
path: root/checker/mod_checking.ml
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2019-05-28 15:34:07 +0200
committerPierre-Marie Pédrot2019-05-28 15:34:07 +0200
commit0683ccc035853c776d522c2bd716b18b9f39bd2a (patch)
tree3611f5571cea9ae0cbc49804d15e8b1fd21e1de2 /checker/mod_checking.ml
parent90ab5eab23dfbd04b8fc6181debc133e436f5211 (diff)
Same universe constraint fix for the checker.
Diffstat (limited to 'checker/mod_checking.ml')
-rw-r--r--checker/mod_checking.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/checker/mod_checking.ml b/checker/mod_checking.ml
index 1cf07e7cc7..1b8bebb85c 100644
--- a/checker/mod_checking.ml
+++ b/checker/mod_checking.ml
@@ -30,13 +30,13 @@ let check_constant_declaration env kn cb =
let env = push_context ~strict:false ctx env in
true, env
in
+ let ty = cb.const_type in
+ let _ = infer_type env' ty in
let env' = match cb.const_private_poly_univs, (cb.const_body, poly) with
| None, _ -> env'
| Some local, (OpaqueDef _, true) -> push_subgraph local env'
| Some _, _ -> assert false
in
- let ty = cb.const_type in
- let _ = infer_type env' ty in
let otab = Environ.opaque_tables env in
let body = match cb.const_body with
| Undef _ | Primitive _ -> None