summaryrefslogtreecommitdiff
path: root/test-suite/typeclasses/open_constr.v
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/typeclasses/open_constr.v')
-rw-r--r--test-suite/typeclasses/open_constr.v12
1 files changed, 12 insertions, 0 deletions
diff --git a/test-suite/typeclasses/open_constr.v b/test-suite/typeclasses/open_constr.v
new file mode 100644
index 00000000..5f1785c7
--- /dev/null
+++ b/test-suite/typeclasses/open_constr.v
@@ -0,0 +1,12 @@
+Tactic Notation "opose" open_constr(foo) := pose foo.
+Class Foo := Build_Foo : Set.
+Axiom f : forall `{Foo}, Set.
+Set Printing Implicit.
+Goal forall `{Foo}, True.
+Proof.
+ intro H.
+ pose f.
+ opose f.
+ Fail let x := (eval hnf in P) in has_evar x.
+ let x := (eval hnf in P0) in has_evar x.
+