Debian Codegraph @

test-suite/bugs/bug_20564.v

raw
1 Require Import Ltac2.Ltac2.
2
3 Fail Ltac2 rec compile1 (cenv : constr list) : constr :=
4 (* ^^^^ *)
5 (* Error: This expression has type constr but an expression was expected of type
6 constr list *)
7 x.
8
9 Fail Ltac2 compile2 (cenv : constr list) : constr :=
10 x. (* Error: Unbound value x *)
11
12 Fail Ltac2 rec compile3 (cenv : constr) : constr :=
13 x. (* Compiles "correctly" *)
14
15 Fail Ltac2 compile3 (cenv : constr) : constr :=
16 x. (* Error: Unbound value x *)