aboutsummaryrefslogtreecommitdiff
path: root/checker/mod_checking.ml
diff options
context:
space:
mode:
authorMaxime Dénès2019-05-29 18:09:04 +0200
committerMaxime Dénès2019-05-29 18:09:04 +0200
commit04398c5fa519b742ff5b97b61bbfa0c9f9d1549c (patch)
tree02b1a143ac2ace1c332376c46b3069be48cb9068 /checker/mod_checking.ml
parenta294ff8f9e73abb05f4449157422f5005eae7497 (diff)
parent0683ccc035853c776d522c2bd716b18b9f39bd2a (diff)
Merge PR #10252: Various dynamic assertions and cleanups in opaque typing
Reviewed-by: SkySkimmer Reviewed-by: maximedenes Ack-by: ppedrot
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 1bc5891517..dedbddfee0 100644
--- a/checker/mod_checking.ml
+++ b/checker/mod_checking.ml
@@ -29,13 +29,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