test-suite/bugs/bug_2837.v
raw| 1 | Require Import TestSuite.jmeq. |
| 2 | |
| 3 | Axiom test : forall n m : nat, JMeq n m. |
| 4 | |
| 5 | Goal forall n m : nat, JMeq n m. |
| 6 | |
| 7 | (* I) with no intros nor variable hints, this should produce a regular error |
| 8 | instead of Uncaught exception Failure("nth"). *) |
| 9 | Fail rewrite test. |
| 10 | |
| 11 | (* II) with intros but indication of variables, still an error *) |
| 12 | Fail (intros; rewrite test). |
| 13 | |
| 14 | (* III) a working variant: *) |
| 15 | intros; rewrite (test n m). |
| 16 | Abort. |