From ffd14d29ba11cffd409f4dced7f23ad5afcb2111 Mon Sep 17 00:00:00 2001 From: letouzey Date: Wed, 30 Nov 2005 00:14:17 +0000 Subject: evite certaines eta-expansions cavalieres git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@7629 85f007b7-540e-0410-9357-904b9bb8a0f7 --- contrib/extraction/extraction.ml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/extraction/extraction.ml b/contrib/extraction/extraction.ml index 16d85a3f99..6bc6673397 100644 --- a/contrib/extraction/extraction.ml +++ b/contrib/extraction/extraction.ml @@ -581,7 +581,9 @@ and extract_cst_app env mle mlt kn args = (* Different situations depending of the number of arguments: *) if ls = 0 then put_magic_if magic2 head else if List.mem true s then - if la >= ls then put_magic_if (magic2 && not magic1) (MLapp (head, mla)) + if la >= ls || not (List.mem false s) + then + put_magic_if (magic2 && not magic1) (MLapp (head, mla)) else (* Not enough arguments. We complete via eta-expansion. *) let ls' = ls-la in -- cgit v1.2.3