Debian Codegraph @

test-suite/bugs/bug_4709.v

raw
1
2 (** Bug 4709 https://coq.inria.fr/bug/4709
3 Extraction wasn't reducing primitive projections in types. *)
4
5 Require Extraction.
6
7 Set Primitive Projections.
8
9 Record t := Foo { foo : Type }.
10 Definition ty := foo (Foo nat).
11
12 (* Without proper reduction of primitive projections in
13 [extract_type], the type [ty] was extracted as [Tunknown].
14 Let's check it isn't the case anymore. *)
15
16 Parameter check : nat.
17 Extract Constant check => "(O:ty)".
18 Extraction TestCompile ty check.