diff options
| author | Helge Bahmann | 2019-10-14 20:05:01 +0200 |
|---|---|---|
| committer | Helge Bahmann | 2019-10-14 20:05:01 +0200 |
| commit | 5e6d984197a986d511a4e54a38425499374e36c1 (patch) | |
| tree | 9b78a87c09eecca3cfbfb25d20deb456ce590964 /plugins/extraction | |
| parent | 2169cf83775a57f48fe1b55796b5bc026a11aea6 (diff) | |
Fix coq#4741: Extract Constant/Inductive with JSON
Resolve by consulting is_custom/find_custom.
Diffstat (limited to 'plugins/extraction')
| -rw-r--r-- | plugins/extraction/json.ml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/extraction/json.ml b/plugins/extraction/json.ml index fba6b7c780..912a20f389 100644 --- a/plugins/extraction/json.ml +++ b/plugins/extraction/json.ml @@ -16,7 +16,10 @@ let json_bool b = if b then str "true" else str "false" let json_global typ ref = - json_str (Common.pp_global typ ref) + if is_custom ref then + json_str (find_custom ref) + else + json_str (Common.pp_global typ ref) let json_id id = json_str (Id.to_string id) |
