aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorHugo Herbelin2018-10-23 15:59:00 +0200
committerHugo Herbelin2018-10-23 16:46:35 +0200
commitc76fbecdfe4231ee3e0753c0efe665b1e8a8bba5 (patch)
tree7f44f9a0a52125c7e8e12c8f28abd65140fbf4e2 /test-suite
parent10e908144df0c06f3ee182482470d7ac39a6cbc5 (diff)
Fixing #8794 (anomaly with abbreviation involving both term and binders).
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/bug_8794.v11
1 files changed, 11 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_8794.v b/test-suite/bugs/closed/bug_8794.v
new file mode 100644
index 0000000000..5ff0b30260
--- /dev/null
+++ b/test-suite/bugs/closed/bug_8794.v
@@ -0,0 +1,11 @@
+(* This used to raise an anomaly in 8.8 *)
+
+Inductive T := Tau (t : T).
+
+Notation idT t := (match t with Tau t => Tau t end).
+
+Lemma match_itree : forall (t : T), t = idT t.
+Proof. destruct t; auto. Qed.
+
+Lemma what (k : unit -> T) : k tt = k tt.
+Proof. rewrite match_itree. Abort.