diff options
| author | Vincent Laporte | 2019-10-23 07:30:26 +0000 |
|---|---|---|
| committer | Vincent Laporte | 2019-10-23 07:30:26 +0000 |
| commit | 1f25366ac049dad2f4fa255f47acf84c3ccb4b02 (patch) | |
| tree | 706c67b5660ab4df39c95bc77d4b6603a35926f8 /plugins | |
| parent | 694d70d92cac55147f88840957b15a147d038db9 (diff) | |
| parent | 5e6d984197a986d511a4e54a38425499374e36c1 (diff) | |
Merge PR #10897: Fix coq#4741: Extract Constant/Inductive with JSON
Reviewed-by: vbgl
Diffstat (limited to 'plugins')
| -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) |
