Debian Codegraph @

test-suite/ltac2/errors.v

raw
1 Require Import Ltac2.Ltac2.
2
3 Goal True.
4 Proof.
5 let x := Control.plus
6 (fun () => let _ := constr:(nat -> 0) in 0)
7 (fun e => match e with Not_found => 1 | _ => 2 end) in
8 match Int.equal x 2 with
9 | true => ()
10 | false => Control.throw (Tactic_failure None)
11 end.
12 Abort.