| 1 |
Require Import Ltac2.Ltac2. |
| 2 |
Ltac2 foo () := let v := Constr.Unsafe.make (Constr.Unsafe.Rel -1) in |
| 3 |
let x := Constr.Binder.make None 'True in |
| 4 |
let vv := Constr.Unsafe.make (Constr.Unsafe.App v (Array.of_list [v])) in |
| 5 |
let f := Constr.Unsafe.make (Constr.Unsafe.Lambda x vv) in |
| 6 |
let ff := Constr.Unsafe.make (Constr.Unsafe.App f (Array.of_list [f])) in |
| 7 |
Std.eval_hnf ff. |
| 8 |
Set Ltac2 Backtrace. |
| 9 |
Ltac2 Eval foo (). |
| 10 |
(* Error: Anomaly "Uncaught exception Not_found." |
| 11 |
Please report at http://coq.inria.fr/bugs/. |
| 12 |
*) |