aboutsummaryrefslogtreecommitdiff
path: root/test-suite/bugs/closed/bug_7904.v
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/bugs/closed/bug_7904.v')
-rw-r--r--test-suite/bugs/closed/bug_7904.v13
1 files changed, 13 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_7904.v b/test-suite/bugs/closed/bug_7904.v
new file mode 100644
index 0000000000..1e518e2adf
--- /dev/null
+++ b/test-suite/bugs/closed/bug_7904.v
@@ -0,0 +1,13 @@
+
+
+Class abstract_term {T} (x : T) := by_abstract_term : T.
+Hint Extern 0 (@abstract_term ?T ?x) => change T; abstract (exact x) : typeclass_instances.
+
+Goal True.
+ let term := constr:(I) in
+ let T := type of term in
+ let x := constr:((_ : abstract_term term) : T) in
+ let x := match constr:(x) with ?y => y end in
+ pose x as v. (* was Error: Variable x should be bound to a term but is bound to a constr. *)
+ exact v.
+Qed.