Debian Codegraph @

test-suite/bugs/bug_5243.v

raw
1 Typeclasses eauto := debug.
2
3 Class Foo A := foo : A.
4
5 Hint Extern 0 (Foo _) => lazy beta delta; give_up : typeclass_instances.
6
7 Lemma t A : A.
8 notypeclasses refine ((_ : Foo A)).
9 typeclasses eauto.
10
11 (*
12 No more subgoals, but there are some goals you gave up:
13
14 A
15
16 You need to go back and solve them.
17 *)
18
19 Abort.
20
21 Lemma t A : A.
22 refine ((_ : Foo A)).
23
24 (*
25 1: looking for (Foo A) without backtracking
26 1.1: (*external*) (lazy beta delta; give_up) on
27 (Foo A), 0 subgoal(s)
28 leaking evar 10
29 A
30
31 Anomaly:
32 File "tactics/class_tactics.ml", line 1345, characters 11-17: Assertion failed.
33 Please report at http://coq.inria.fr/bugs/.
34 *)
35 Unshelve.
36 all:fail. (* no more goals *)
37 Fail Qed.
38 Abort.