aboutsummaryrefslogtreecommitdiffhomepage
path: root/toplevel
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2000-07-01 10:10:09 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2000-07-01 10:10:09 +0000
commit3112d687d025a1ca7959c858e4d3c39a7c3fe892 (patch)
tree9560e1dd0e572ad328ff424abc09e63776ce8b5f /toplevel
parent596e96a196a8b2320073926a1a716f112ad2317e (diff)
Bug: on tentait de déclarer un schéma d'induction pour un coinductif
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@539 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel')
-rw-r--r--toplevel/command.ml7
1 files changed, 4 insertions, 3 deletions
diff --git a/toplevel/command.ml b/toplevel/command.ml
index 7b507f5aa..08c740013 100644
--- a/toplevel/command.ml
+++ b/toplevel/command.ml
@@ -167,9 +167,10 @@ let build_mutual lparams lnamearconstrs finite =
in
let sp = declare_mind mie in
if is_verbose() then pPNL(minductive_message lrecnames);
- for i = 0 to List.length mispecvec - 1 do
- declare_eliminations sp i
- done
+ if finite then
+ for i = 0 to List.length mispecvec - 1 do
+ declare_eliminations sp i
+ done
(* try to find non recursive definitions *)