aboutsummaryrefslogtreecommitdiff
path: root/kernel/inductive.ml
diff options
context:
space:
mode:
authorbarras2002-02-05 15:15:02 +0000
committerbarras2002-02-05 15:15:02 +0000
commitf73f293e99542949c46c5292a2af06a90b563f8e (patch)
tree6eda2869d4590a4882f8623e5cb340a683d9d713 /kernel/inductive.ml
parenta0c516a70873ee3d4f6ef0bd7afdbd94b3c763c6 (diff)
evaluable_constant retournait vrai pour les constantes opaques, ce qui faisait
boucler la condition de garde git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@2454 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel/inductive.ml')
-rw-r--r--kernel/inductive.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/inductive.ml b/kernel/inductive.ml
index 26f4d51c6d..b4a74061f0 100644
--- a/kernel/inductive.ml
+++ b/kernel/inductive.ml
@@ -642,7 +642,8 @@ let check_one_fix renv recpos def =
(try List.for_all (check_rec_call renv) l
with (FixGuardError _ ) as e ->
if evaluable_constant renv.env sp then
- check_rec_call renv (whd_betadeltaiota renv.env t)
+ check_rec_call renv
+ (applist(constant_value renv.env sp, l))
else raise e)
(* The cases below simply check recursively the condition on the