diff options
| author | Gaëtan Gilbert | 2019-01-08 15:57:27 +0100 |
|---|---|---|
| committer | Gaëtan Gilbert | 2019-01-30 12:49:28 +0100 |
| commit | f6613489304a30846af28334c040c7d4f9e4addc (patch) | |
| tree | 1b5e600288190926ee4be95ba40a1d071060e7c6 /kernel/context.ml | |
| parent | a9b141469fe3036355be95d8cf5f0bf5c240fe37 (diff) | |
Restrict universes in records.
Fix #8076.
Diffstat (limited to 'kernel/context.ml')
| -rw-r--r-- | kernel/context.ml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/context.ml b/kernel/context.ml index 3d98381fbb..1cc6e79485 100644 --- a/kernel/context.ml +++ b/kernel/context.ml @@ -134,6 +134,15 @@ struct let ty' = f ty in if v == v' && ty == ty' then decl else LocalDef (na, v', ty') + let map_constr_het f = function + | LocalAssum (na, ty) -> + let ty' = f ty in + LocalAssum (na, ty') + | LocalDef (na, v, ty) -> + let v' = f v in + let ty' = f ty in + LocalDef (na, v', ty') + (** Perform a given action on all terms in a given declaration. *) let iter_constr f = function | LocalAssum (_,ty) -> f ty |
