Debian Codegraph @

test-suite/bugs/bug_16540.v

raw
1 Require Import Ltac2.Ltac2.
2 Require Import Ltac2.Printf.
3 Import Constr.Unsafe.
4 Ltac2 mkApp (f : constr) (args : constr list) :=
5 make (App f (Array.of_list args)).
6 Ltac2 mkVar (i : ident) :=
7 make (Var i).
8 Goal True.
9 let c := Constr.in_context @foo '_ (fun () => let term := mkApp (mkVar @foo) ['I] in
10 printf "%t" term;
11 Control.refine (fun () => term)) in
12 ().
13 (* Error: Anomaly "Uncaught exception Constr.DestKO." Please report at http://coq.inria.fr/bugs/. *)
14 Abort.