aboutsummaryrefslogtreecommitdiff
path: root/toplevel/command.ml
diff options
context:
space:
mode:
authorherbelin2001-09-10 12:37:15 +0000
committerherbelin2001-09-10 12:37:15 +0000
commit217cdd9aefb0b2cb822d8be7ba8c85de39aef2dd (patch)
tree85666b95e04bfcb1ff227a625b51d173b3234b22 /toplevel/command.ml
parentd31a683978ed70d49cec29e1df7a9d3f7618c121 (diff)
Utilisation d'un type spécifique (elimination_sorts) pour caractériser les éliminations, pour éviter les collisions avec les univers
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1946 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel/command.ml')
-rw-r--r--toplevel/command.ml7
1 files changed, 4 insertions, 3 deletions
diff --git a/toplevel/command.ml b/toplevel/command.ml
index b3a34e2ce6..5620473fe5 100644
--- a/toplevel/command.ml
+++ b/toplevel/command.ml
@@ -398,9 +398,10 @@ let build_scheme lnamedepindsort =
and sigma = Evd.empty
and env0 = Global.env() in
let lrecspec =
- List.map (fun (_,dep,indid,sort) ->
- let s = destSort (interp_constr sigma env0 sort) in
- (inductive_of_ident indid,dep,s)) lnamedepindsort
+ List.map
+ (fun (_,dep,indid,sort) ->
+ (inductive_of_ident indid,dep,interp_elimination_sort sort))
+ lnamedepindsort
in
let n = NeverDischarge in
let listdecl = Indrec.build_mutual_indrec env0 sigma lrecspec in