From 7461aaedef508570fba6334e18fd10d5b32bda0e Mon Sep 17 00:00:00 2001 From: Pierre-Marie Pédrot Date: Thu, 3 Mar 2016 21:35:42 +0100 Subject: Adding a test for the behaviour of open_constr described in #3777. --- test-suite/typeclasses/open_constr.v | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test-suite/typeclasses/open_constr.v (limited to 'test-suite/typeclasses') diff --git a/test-suite/typeclasses/open_constr.v b/test-suite/typeclasses/open_constr.v new file mode 100644 index 000000000..5f1785c70 --- /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. + -- cgit v1.2.3