test-suite/bugs/bug_5193.v
raw| 1 | Class Eqdec A := eqdec : forall a b : A, {a=b}+{a<>b}. |
| 2 | |
| 3 | Typeclasses eauto := debug. |
| 4 | Set Typeclasses Debug Verbosity 2. |
| 5 | |
| 6 | Inductive Finx(n : nat) : Set := |
| 7 | | Fx1(i : nat)(e : n = S i) |
| 8 | | FxS(i : nat)(f : Finx i)(e : n = S i). |
| 9 | |
| 10 | #[warning="context-outside-section"] Context `{Finx_eqdec : forall n, Eqdec (Finx n)}. |
| 11 | |
| 12 | Goal {x : Type & Eqdec x}. |
| 13 | eexists. |
| 14 | try typeclasses eauto 1 with typeclass_instances. |
| 15 | Abort. |