diff options
| author | Matthieu Sozeau | 2014-08-14 14:14:25 +0200 |
|---|---|---|
| committer | Matthieu Sozeau | 2014-08-14 14:14:25 +0200 |
| commit | fcfa1e90df70b7fc00a4865fb48c1dc3250c58d9 (patch) | |
| tree | b3111df322b6520937565687b1915d6079127c7f /pretyping/inductiveops.ml | |
| parent | 37a58edffeff7b6a7f03ec781e1e2ca73de4b3af (diff) | |
Fix non-printing of coercions for primitive projections (fixes bug #3433).
Diffstat (limited to 'pretyping/inductiveops.ml')
| -rw-r--r-- | pretyping/inductiveops.ml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pretyping/inductiveops.ml b/pretyping/inductiveops.ml index 5e853784ec..34243f499c 100644 --- a/pretyping/inductiveops.ml +++ b/pretyping/inductiveops.ml @@ -264,6 +264,12 @@ let allowed_sorts env (kn,i as ind) = let (mib,mip) = Inductive.lookup_mind_specif env ind in mip.mind_kelim +let projection_nparams_env env p = + let pb = lookup_projection p env in + pb.proj_npars + +let projection_nparams p = projection_nparams_env (Global.env ()) p + (* Annotation for cases *) let make_case_info env ind style = let (mib,mip) = Inductive.lookup_mind_specif env ind in |
