Debian Codegraph @

test-suite/bugs/bug_20044.v

raw
1 Require Export
2 Corelib.Classes.CMorphisms.
3
4 Definition R (x y : unit) : Type := unit.
5
6 Instance :
7 Reflexive R.
8 Proof.
9 intros x.
10 constructor.
11 Qed.
12
13 Instance :
14 Proper (R ==> R ==> flip arrow) R.
15 Proof.
16 intros [] [] _ [] [] _ _.
17 constructor.
18 Qed.
19
20 Instance :
21 forall x, Proper (R ==> flip arrow) (R x).
22 Proof.
23 intros x.
24 partial_application_tactic;
25 typeclasses eauto.
26 Abort.
27
28 Instance : Params R 1 := {}.
29 Instance :
30 forall x, Proper (R ==> flip arrow) (R x).
31 Proof.
32 intros x.
33 (* should fail in the presence of a params instance *)
34 Fail partial_application_tactic.
35 Abort.