test-suite/bugs/bug_8794.v
raw| 1 | (* This used to raise an anomaly in 8.8 *) |
| 2 | |
| 3 | Inductive T := Tau (t : T). |
| 4 | |
| 5 | Notation idT t := (match t with Tau t => Tau t end). |
| 6 | |
| 7 | Lemma match_itree : forall (t : T), t = idT t. |
| 8 | Proof. destruct t; auto. Qed. |
| 9 | |
| 10 | Lemma what (k : unit -> T) : k tt = k tt. |
| 11 | Proof. rewrite match_itree. Abort. |