From e4aa9817115b3d27eb7fca8fed86ffe397b868ad Mon Sep 17 00:00:00 2001 From: Matthieu Sozeau Date: Fri, 12 Sep 2014 16:58:37 +0200 Subject: While we don't have a clean alternative to Clenvtac, add a primitive for tclEVARS which might solve existing goals. --- test-suite/typeclasses/deftwice.v | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test-suite/typeclasses/deftwice.v (limited to 'test-suite/typeclasses') diff --git a/test-suite/typeclasses/deftwice.v b/test-suite/typeclasses/deftwice.v new file mode 100644 index 000000000..439782c9e --- /dev/null +++ b/test-suite/typeclasses/deftwice.v @@ -0,0 +1,9 @@ +Class C (A : Type) := c : A -> Type. + +Record Inhab (A : Type) := { witness : A }. + +Instance inhab_C : C Type := Inhab. + +Variable full : forall A (X : C A), forall x : A, c x. + +Definition truc {A : Type} : Inhab A := (full _ _ _). \ No newline at end of file -- cgit v1.2.3