test-suite/bugs/bug_5707.v
raw| 1 | (* Destruct and primitive projections *) |
| 2 | |
| 3 | (* Checking the (superficial) part of #5707: |
| 4 | "destruct" should be able to use non-dependent case analysis when |
| 5 | dependent case analysis is not available and unneeded *) |
| 6 | |
| 7 | Set Primitive Projections. |
| 8 | |
| 9 | Inductive foo := Foo { proj1 : nat; proj2 : nat }. |
| 10 | |
| 11 | Goal forall x : foo, True. |
| 12 | Proof. intros x. destruct x. |
| 13 | Abort. |