test-suite/bugs/bug_8215.v
raw| 1 | (* Check that instances for local definitions in evars have compatible body *) |
| 2 | Goal False. |
| 3 | Proof. |
| 4 | pose (n := 1). |
| 5 | evar (m:nat). |
| 6 | subst n. |
| 7 | pose (n := 0). |
| 8 | Fail Check ?m. (* n cannot be reinterpreted with a value convertible to 1 *) |
| 9 | clearbody n. |
| 10 | Fail Check ?m. (* n cannot be reinterpreted with a value convertible to 1 *) |
| 11 | clear n. |
| 12 | pose (n := 0+1). |
| 13 | Check ?m. (* Should be ok *) |
| 14 | Abort. |