Debian Codegraph @

test-suite/output/ltac2_check_globalize.out

raw
1 ()
2 () : unit
3 fun x => x : 'a -> 'a
4 () ()
5 (1, 2) 3
6 let x := () in
7 x ()
8 File "./output/ltac2_check_globalize.v", line 22, characters 32-33:
9 The command has indeed failed with message:
10 This expression has type unit. It is not a function and cannot be applied.
11 let x := fun x => x in
12 let _ := x 1 in
13 let _ := x "" in
14 ()
15 let x := fun x => x in
16 let _ := x 1 in
17 let _ := x "" in
18 () : unit
19 let accu := { contents := []} in
20 (let x := fun x => accu.(contents) := (x :: accu.(contents)) in
21 let _ := x 1 in
22 let _ := x "" in
23 ());
24 accu.(contents)
25 File "./output/ltac2_check_globalize.v", line 38, characters 0-144:
26 The command has indeed failed with message:
27 This expression has type string but an expression was expected of type
28 int
29 let (m : '__α Pattern.goal_matching) :=
30 ([(([(None, (Pattern.MatchPattern, pat:(_)))],
31 (Pattern.MatchPattern, pat:(_))),
32 (fun h =>
33 let h := Array.get h 0 in
34 fun _ => fun _ => fun _ => fun _ => Std.clear h));
35 (([], (Pattern.MatchPattern, pat:(_))),
36 (fun _ => fun _ => fun _ => fun _ => fun _ => ()))]
37 : _ Pattern.goal_matching)
38 in
39 Pattern.lazy_goal_match0 false m :'__α
40 constr:(ltac2:(()))