test-suite/bugs/bug_1477.v
raw| 1 | Inductive I : Set := |
| 2 | | A : nat -> nat -> I |
| 3 | | B : nat -> nat -> I. |
| 4 | |
| 5 | Definition foo1 (x:I) : nat := |
| 6 | match x with |
| 7 | | A a b | B a b => S b |
| 8 | end. |
| 9 | |
| 10 | Definition foo2 (x:I) : nat := |
| 11 | match x with |
| 12 | | A _ b | B b _ => S b |
| 13 | end. |
| 14 | |
| 15 | Definition foo (x:I) : nat := |
| 16 | match x with |
| 17 | | A a b | B b a => S b |
| 18 | end. |