aboutsummaryrefslogtreecommitdiffhomepage
path: root/checker/modops.ml
diff options
context:
space:
mode:
authorGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2017-07-28 14:23:37 +0200
committerGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2017-08-29 17:24:31 +0200
commit37b81fe10d2da12180d96d931ba2b76370e1eea5 (patch)
tree60559a7e8894147a4fb4884d854d9efb4e404a5b /checker/modops.ml
parent1974816aca996fe3ee9420b83f11d15923e70fda (diff)
Statically enforcing that module types have no retroknowledge.
Diffstat (limited to 'checker/modops.ml')
-rw-r--r--checker/modops.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/checker/modops.ml b/checker/modops.ml
index 726988752..f0abc39ea 100644
--- a/checker/modops.ml
+++ b/checker/modops.ml
@@ -49,7 +49,7 @@ let destr_functor = function
| NoFunctor _ -> error_not_a_functor ()
let module_body_of_type mp mtb =
- { mtb with mod_mp = mp; mod_expr = Abstract }
+ { mtb with mod_mp = mp; mod_expr = Abstract; mod_retroknowledge = ModBodyRK [] }
let rec add_structure mp sign resolver env =
let add_one env (l,elem) =
@@ -142,7 +142,7 @@ let module_type_of_module mp mb =
{ mb with
mod_expr = ();
mod_type_alg = None;
- mod_retroknowledge = [] }
+ mod_retroknowledge = ModTypeRK }
in
match mp with
| Some mp -> strengthen {mtb with mod_mp = mp} mp