Debian Codegraph @

test-suite/bugs/bug_9644.v

raw
1
2 Lemma test
3 (R : nat -> Prop)
4 (_ : True)
5 (G : R 0)
6 (M : (exists n : nat, 0 = n) /\ True)
7 : True.
8 Proof.
9 destruct M as [[n K] _].
10 rewrite K in G.
11 exact I.
12 Qed.
13
14 Print test.
15 (* Used to be:
16 Anomaly "Uncaught exception Not_found."
17 Please report at http://coq.inria.fr/bugs/.
18 *)
19
20
21 Lemma test1
22 (_ : True)
23 (R : nat -> Prop)
24 (G : R 0)
25 (M : (exists n : nat, 0 = n) /\ True)
26 : True.
27 Proof.
28 destruct M as [[n K] _].
29 rewrite K in G.
30 exact I.
31 Qed.
32
33 Print test1.
34 (* Used to be:
35 Anomaly "Uncaught exception Retyping.RetypeError(0)."
36 Please report at http://coq.inria.fr/bugs/.
37 *)