aboutsummaryrefslogtreecommitdiff
path: root/parsing
diff options
context:
space:
mode:
Diffstat (limited to 'parsing')
-rw-r--r--parsing/termast.ml12
1 files changed, 7 insertions, 5 deletions
diff --git a/parsing/termast.ml b/parsing/termast.ml
index 8e7cc12af2..3d72f4adcd 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