Debian Codegraph @

test-suite/bugs/bug_5328.v

raw
1 Section foo.
2 Let k := 1.
3
4 Definition v (x : nat) := k.
5 Global Arguments v !_ / .
6 Eval simpl in v 1. (* k *)
7 End foo.
8 About v.
9 (* v : nat -> nat
10
11 Argument scope is [nat_scope]
12 The reduction tactics unfold v when the 2nd argument evaluates to a constructor
13 and
14 when applied to 2 arguments
15 v is transparent
16 Expands to: Constant Top.v
17 *)
18 Eval simpl in v 1. (* v 1 *)
19 Goal True.
20 let k := (eval simpl in (v 1))
21 in constr_eq k 1. (* should succeed *)
22 Abort.