aboutsummaryrefslogtreecommitdiff
path: root/toplevel
diff options
context:
space:
mode:
authorherbelin2000-03-21 00:03:56 +0000
committerherbelin2000-03-21 00:03:56 +0000
commit70102c9c7b059b6a058e14c4cfda9cdd29ee3010 (patch)
tree9ca5918b3c3366cba5d237a74ca92725d2bd34f5 /toplevel
parent73e027a781c1025914749975d341dbab21e2bc45 (diff)
Prise en compte nouveau case_info dans type_case
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@335 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel')
-rw-r--r--toplevel/record.ml5
1 files changed, 4 insertions, 1 deletions
diff --git a/toplevel/record.ml b/toplevel/record.ml
index 1a5536a230..79ccb76111 100644
--- a/toplevel/record.ml
+++ b/toplevel/record.ml
@@ -126,9 +126,12 @@ let definition_structure (is_coe,idstruc,ps,cfs,idbuild,s) =
end else
let p = mkLambda x rp2 (replace_vars subst ti) in
let branch = mk_LambdaCit newfs (VAR fi) in
+ let ci = Inductive.make_case_info
+ (Global.lookup_mind_specif (destMutInd r))
+ (Some PrintLet) [| RegularPat |] in
let proj = mk_LambdaCit newps
(mkLambda x rp1
- (mkMutCaseA (ci_of_mind r) p (Rel 1) [|branch|])) in
+ (mkMutCaseA ci p (Rel 1) [|branch|])) in
let ok =
try
let cie =