summaryrefslogtreecommitdiff
path: root/pretyping/retyping.ml
diff options
context:
space:
mode:
authorGravatar Stephane Glondu <steph@glondu.net>2009-02-19 13:13:20 +0100
committerGravatar Stephane Glondu <steph@glondu.net>2009-02-19 13:13:20 +0100
commit2155252cd74c3a2d0dc0bde716ef70b1f86b8085 (patch)
tree20313deb80e22ea9088f1e6ba0bb9336f3718b25 /pretyping/retyping.ml
parent06746919eadeeb430bfb464d83847f982ea78540 (diff)
parenta0a94c1340a63cdb824507b973393882666ba52a (diff)
Merge commit 'upstream/8.2-1+dfsg'
Diffstat (limited to 'pretyping/retyping.ml')
-rw-r--r--pretyping/retyping.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/pretyping/retyping.ml b/pretyping/retyping.ml
index 2465bd1e..19e46a47 100644
--- a/pretyping/retyping.ml
+++ b/pretyping/retyping.ml
@@ -6,7 +6,7 @@
(* * GNU Lesser General Public License Version 2.1 *)
(************************************************************************)
-(* $Id: retyping.ml 11778 2009-01-13 13:17:39Z msozeau $ *)
+(* $Id: retyping.ml 11897 2009-02-09 19:28:02Z barras $ *)
open Util
open Term
@@ -62,9 +62,9 @@ let retype sigma metamap =
let Inductiveops.IndType(_,realargs) =
try Inductiveops.find_rectype env sigma (type_of env c)
with Not_found -> anomaly "type_of: Bad recursive type" in
- let t = whd_beta (applist (p, realargs)) in
+ let t = whd_beta sigma (applist (p, realargs)) in
(match kind_of_term (whd_betadeltaiota env sigma (type_of env t)) with
- | Prod _ -> whd_beta (applist (t, [c]))
+ | Prod _ -> whd_beta sigma (applist (t, [c]))
| _ -> t)
| Lambda (name,c1,c2) ->
mkProd (name, c1, type_of (push_rel (name,None,c1) env) c2)