diff src/DataStruct.v @ 204:cbf2f74a5130

Parts I want to keep compile with 8.2
author Adam Chlipala <adamc@hcoop.net>
date Fri, 06 Nov 2009 10:52:43 -0500
parents 464db50b210a
children f05514cc6c0d
line wrap: on
line diff
--- a/src/DataStruct.v	Sun Jan 04 08:18:59 2009 -0500
+++ b/src/DataStruct.v	Fri Nov 06 10:52:43 2009 -0500
@@ -699,7 +699,7 @@
     match n return (findex n -> exp' Bool) -> (findex n -> exp' t) -> exp' t with
       | O => fun _ _ => default
       | S n' => fun tests bodies =>
-        match tests None with
+        match tests None return _ with
           | BConst true => bodies None
           | BConst false => cfoldCond n'
             (fun idx => tests (Some idx))
@@ -743,14 +743,14 @@
     | Plus e1 e2 =>
       let e1' := cfold e1 in
       let e2' := cfold e2 in
-      match e1', e2' with
+      match e1', e2' return _ with
         | NConst n1, NConst n2 => NConst (n1 + n2)
         | _, _ => Plus e1' e2'
       end
     | Eq e1 e2 =>
       let e1' := cfold e1 in
       let e2' := cfold e2 in
-      match e1', e2' with
+      match e1', e2' return _ with
         | NConst n1, NConst n2 => BConst (if eq_nat_dec n1 n2 then true else false)
         | _, _ => Eq e1' e2'
       end