aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/bugs/closed/3633.v
diff options
context:
space:
mode:
authorGravatar Matthieu Sozeau <matthieu.sozeau@inria.fr>2014-09-17 16:20:50 +0200
committerGravatar Matthieu Sozeau <matthieu.sozeau@inria.fr>2014-09-17 17:57:08 +0200
commit17f68d403d248e899efbb76afeed169232946ecf (patch)
tree5eb60ef760ea388670612c4c0ece96a43e7dad87 /test-suite/bugs/closed/3633.v
parentcc6afad3bcfaa5b7fa57c8cd3035fe520c93afda (diff)
Fix bug #3633 properly, by delaying the interpetation of constrs in
apply f, g,... so that apply f, g. succeeds when apply f; apply g does. It just mimicks the behavior of rewrite foo bar.
Diffstat (limited to 'test-suite/bugs/closed/3633.v')
-rw-r--r--test-suite/bugs/closed/3633.v10
1 files changed, 10 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/3633.v b/test-suite/bugs/closed/3633.v
new file mode 100644
index 000000000..6a952377c
--- /dev/null
+++ b/test-suite/bugs/closed/3633.v
@@ -0,0 +1,10 @@
+Set Typeclasses Strict Resolution.
+Class Contr (A : Type) := { center : A }.
+Definition foo {A} `{Contr A} : A.
+Proof.
+ apply center.
+ Undo.
+ (* Ensure the constraints are solved independently, otherwise a frozen ?A
+ makes a search for Contr ?A fail when finishing to apply (fun x => x) *)
+ apply (fun x => x), center.
+Qed. \ No newline at end of file