aboutsummaryrefslogtreecommitdiffhomepage
path: root/vernac/himsg.ml
diff options
context:
space:
mode:
authorGravatar Matthieu Sozeau <mattam@eduroam-prg-sg-1-46-137.net.univ-paris-diderot.fr>2017-01-24 17:24:39 +0100
committerGravatar Matthieu Sozeau <mattam@mattam.org>2018-03-08 07:56:59 -0300
commit7ceed3c76e5ac752321827300f80ee974acbb54c (patch)
tree3c9198c9405c3d2d0df474a0a1c79722414b3841 /vernac/himsg.ml
parente3124e098ef8170dac2b348b91757a7034bc4999 (diff)
Fix SR breakage due to allowing fixpoints on non-rec values
We limit fixpoints to Finite inductive types, so that BiFinite inductives (non-recursive records) are excluded from fixpoint construction. This is a regression in the sense that e.g. fixpoints on unit records were allowed before. Primitive records with eta-conversion are included in the BiFinite types. Fix deprecation Fix error message, the inductive type needs to be recursive for fix to work
Diffstat (limited to 'vernac/himsg.ml')
-rw-r--r--vernac/himsg.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/vernac/himsg.ml b/vernac/himsg.ml
index f00c1e604..6e827c303 100644
--- a/vernac/himsg.ml
+++ b/vernac/himsg.ml
@@ -423,7 +423,7 @@ let explain_ill_formed_rec_body env sigma err names i fixenv vdefj =
str "Not enough abstractions in the definition"
| RecursionNotOnInductiveType c ->
str "Recursive definition on" ++ spc () ++ pr_lconstr_env env sigma c ++
- spc () ++ str "which should be an inductive type"
+ spc () ++ str "which should be a recursive inductive type"
| RecursionOnIllegalTerm(j,(arg_env, arg),le,lt) ->
let arg_env = make_all_name_different arg_env sigma in
let called =