test-suite/bugs/bug_1740.v
raw| 1 | (* Check that expansion of alias in pattern-matching compilation is no |
| 2 | longer dependent of whether the pattern-matching problem occurs in a |
| 3 | typed context or at toplevel (solved from revision 10883) *) |
| 4 | |
| 5 | Definition f := |
| 6 | fun n m : nat => |
| 7 | match n, m with |
| 8 | | O, _ => O |
| 9 | | n, O => n |
| 10 | | _, _ => O |
| 11 | end. |
| 12 | |
| 13 | Goal f = |
| 14 | fun n m : nat => |
| 15 | match n, m with |
| 16 | | O, _ => O |
| 17 | | n, O => n |
| 18 | | _, _ => O |
| 19 | end. |
| 20 | unfold f. |
| 21 | reflexivity. |
| 22 | Qed. |