Debian Codegraph @

test-suite/bugs/bug_11114.v

raw
1 Require Extraction.
2
3 Inductive t (sig: list nat) :=
4 | T (k: nat).
5
6 Record pkg :=
7 { _sig: list nat;
8 _t : t _sig }.
9
10 Definition map (f: nat -> nat) (p: pkg) :=
11 {| _sig := p.(_sig);
12 _t := match p.(_t) with
13 | T _ k => T p.(_sig) (f k)
14 end |}.
15
16 Extraction Implicit Build_pkg [_sig].
17 Extraction TestCompile map.