diff options
| author | Maxime Dénès | 2018-02-19 11:17:43 +0100 |
|---|---|---|
| committer | Maxime Dénès | 2018-02-19 11:17:43 +0100 |
| commit | aec63ba9c8f6840d98ba731640a786138d836343 (patch) | |
| tree | 4cb8fd89ef12bfba60188bfdccaafc5a9ab6007d /checker/declarations.ml | |
| parent | f0147fd87440396aeaee5eada538e09423fe299e (diff) | |
| parent | 19b04b2bd1c5b505c70723a16505fcb3e6d41ede (diff) | |
Merge PR #6728: Extrude monomorphic universe contexts from with Definition constraints.
Diffstat (limited to 'checker/declarations.ml')
| -rw-r--r-- | checker/declarations.ml | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/checker/declarations.ml b/checker/declarations.ml index 15b1f0a0c6..2fe930dca2 100644 --- a/checker/declarations.ml +++ b/checker/declarations.ml @@ -573,14 +573,10 @@ let implem_map fs fa = function | Algebraic a -> Algebraic (fa a) | impl -> impl -let subst_with_body sub = function - | WithMod(id,mp) -> WithMod(id,subst_mp sub mp) - | WithDef(id,(c,ctx)) -> WithDef(id,(subst_mps sub c,ctx)) - let rec subst_expr sub = function | MEident mp -> MEident (subst_mp sub mp) | MEapply (me1,mp2)-> MEapply (subst_expr sub me1, subst_mp sub mp2) - | MEwith (me,wd)-> MEwith (subst_expr sub me, subst_with_body sub wd) + | MEwith (me,wd)-> MEwith (subst_expr sub me, wd) let rec subst_expression sub me = functor_map (subst_module_type sub) (subst_expr sub) me |
