Debian Codegraph @

test-suite/bugs/bug_17298.v

raw
1 Goal True.
2 let c := open_constr:(_) in
3 let _ := open_constr:(c : nat) in
4 pose (x:=c);
5 pose (y := c).
6
7 (* evars remain, do not use the kernel *)
8 Check (eq_refl : x = y).
9
10 (* evars remain, since we don't recheck with the kernel this is accepted *)
11 Check (ltac:(exact_no_check (@eq_refl nat 0)) : x = y).
12
13 (* no evars, check that the kernel got the normalized env *)
14 Check (eq_refl : x = 0).
15
16 Fail Check (ltac:(let _ := open_constr:(eq_refl : x = 0) in
17 exact_no_check (@eq_refl nat 1)) : x = 0).
18 Abort.