diff options
author | 2001-02-06 00:23:22 +0000 | |
---|---|---|
committer | 2001-02-06 00:23:22 +0000 | |
commit | 7cff0b6c6a492fd39640f7e73f4aa88f932fb0e2 (patch) | |
tree | e89f8769e316f6a0eccead27a243780b3810000a /parsing | |
parent | 76d397868814083aa79adcf3ccfb2766debcff11 (diff) |
Ajout d'une commande pour afficher chaque coercion à la demandeparsing/g_basevernac.ml4
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1332 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'parsing')
-rw-r--r-- | parsing/termast.ml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/parsing/termast.ml b/parsing/termast.ml index 8e7cc12af..3d72f4adc 100644 --- a/parsing/termast.ml +++ b/parsing/termast.ml @@ -155,11 +155,13 @@ let rec skip_coercion dest_ref (f,args as app) = try match dest_ref f with | Some r -> - let n = Classops.coercion_params r in - if n >= List.length args then app - else (* We skip a coercion *) - let _,fargs = list_chop n args in - skip_coercion dest_ref (List.hd fargs,List.tl fargs) + (match Classops.hide_coercion r with + | Some n -> + if n >= List.length args then app + else (* We skip a coercion *) + let _,fargs = list_chop n args in + skip_coercion dest_ref (List.hd fargs,List.tl fargs) + | None -> app) | None -> app with Not_found -> app |