aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaëtan Gilbert2020-08-28 15:22:26 +0200
committerGaëtan Gilbert2020-08-28 15:22:26 +0200
commit0b4c7edc03fda831a746e5a34418e948d19c9c62 (patch)
tree5615c9909861433c354323fec8ed8cba2ed5da3c
parent911f33f0a0ff648082d329841388f59e8cecf231 (diff)
Add test for past anomaly
Close #5703 I have no idea when this got fixed.
-rw-r--r--test-suite/bugs/closed/bug_5703.v9
1 files changed, 9 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_5703.v b/test-suite/bugs/closed/bug_5703.v
new file mode 100644
index 0000000000..c6e9eab9a7
--- /dev/null
+++ b/test-suite/bugs/closed/bug_5703.v
@@ -0,0 +1,9 @@
+Class A := {}.
+Instance a:A := {}.
+Hint Extern 0 A => abstract (exact a) : typeclass_instances.
+Lemma lem : A.
+Proof.
+ let a := constr:(_:A) in
+ let b := type of a in
+ exact a.
+Defined.