diff options
author | Samuel Mimram <smimram@debian.org> | 2006-04-28 14:59:16 +0000 |
---|---|---|
committer | Samuel Mimram <smimram@debian.org> | 2006-04-28 14:59:16 +0000 |
commit | 3ef7797ef6fc605dfafb32523261fe1b023aeecb (patch) | |
tree | ad89c6bb57ceee608fcba2bb3435b74e0f57919e /test-suite/success/CaseAlias.v | |
parent | 018ee3b0c2be79eb81b1f65c3f3fa142d24129c8 (diff) |
Imported Upstream version 8.0pl3+8.1alphaupstream/8.0pl3+8.1alpha
Diffstat (limited to 'test-suite/success/CaseAlias.v')
-rw-r--r-- | test-suite/success/CaseAlias.v | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/test-suite/success/CaseAlias.v b/test-suite/success/CaseAlias.v index b5f0e730..32d85779 100644 --- a/test-suite/success/CaseAlias.v +++ b/test-suite/success/CaseAlias.v @@ -1,21 +1,21 @@ (* This has been a bug reported by Y. Bertot *) Inductive expr : Set := - b: expr -> expr -> expr - | u: expr -> expr - | a: expr - | var: nat -> expr . + | b : expr -> expr -> expr + | u : expr -> expr + | a : expr + | var : nat -> expr. -Fixpoint f [t : expr] : expr := - Cases t of - | (b t1 t2) => (b (f t1) (f t2)) - | a => a - | x => (b t a) - end. +Fixpoint f (t : expr) : expr := + match t with + | b t1 t2 => b (f t1) (f t2) + | a => a + | x => b t a + end. -Fixpoint f2 [t : expr] : expr := - Cases t of - | (b t1 t2) => (b (f2 t1) (f2 t2)) - | a => a - | x => (b x a) - end. +Fixpoint f2 (t : expr) : expr := + match t with + | b t1 t2 => b (f2 t1) (f2 t2) + | a => a + | x => b x a + end. |