diff options
| author | Hugo Herbelin | 2019-12-22 20:28:42 +0100 |
|---|---|---|
| committer | Hugo Herbelin | 2020-02-20 09:54:45 +0100 |
| commit | 4b429f64ee9a36a7151575b914b3af56a300b28b (patch) | |
| tree | 78da4a1219afcfeafe4bb05be1fda1b7feaf12af /test-suite | |
| parent | 9d427ac1c3fcb3c50623d7a95d97bb578fd381fa (diff) | |
Fixing #11114 (anomaly with Extraction Implicit on records).
This was due to an inconsistency in handling implicit arguments in
the fields and in the constructor of a record.
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/bugs/closed/bug_11114.v | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_11114.v b/test-suite/bugs/closed/bug_11114.v new file mode 100644 index 0000000000..dd981279db --- /dev/null +++ b/test-suite/bugs/closed/bug_11114.v @@ -0,0 +1,17 @@ +Require Extraction. + +Inductive t (sig: list nat) := +| T (k: nat). + +Record pkg := + { _sig: list nat; + _t : t _sig }. + +Definition map (f: nat -> nat) (p: pkg) := + {| _sig := p.(_sig); + _t := match p.(_t) with + | T _ k => T p.(_sig) (f k) + end |}. + +Extraction Implicit Build_pkg [_sig]. +Extraction TestCompile map. |
