Debian Codegraph @

test-suite/output/bug_19138.v

raw
1 From Ltac2 Require Import Ltac2 Constr.
2 Import Constr.Unsafe.
3
4 Goal True.
5 let t := open_constr:(_ :> False) in
6 match kind t with
7 | Evar e _ => Control.new_goal e > [refine 'I|]
8 | _ => Control.throw Not_found
9 end.
10 Show Existentials. (* Existential 1 = ?Goal : [ |- False] (shelved) *)
11 Abort.
12
13 Goal True.
14 let t := unshelve open_constr:(_ :> False) in
15 Control.extend [Control.shelve] (fun () => ()) [];
16 match kind t with
17 | Evar e _ => Control.new_goal e > [refine 'I|]
18 | _ => Control.throw Not_found
19 end.
20 Show Existentials.
21 Abort.