@@ -104,7 +104,7 @@ let exn_block_as_obj ~(stack : bool) (el : J.expression list) (ext : J.tag_info)
104104 : J.expression =
105105 let field_name =
106106 match ext with
107- | Blk_extension -> (
107+ | Blk_extension _ -> (
108108 fun i ->
109109 match i with 0 -> Literals. exception_id | i -> " _" ^ string_of_int i)
110110 | Blk_record_ext { fields = ss } -> (
@@ -170,7 +170,7 @@ let exp_need_paren (e : J.expression) =
170170 ( _,
171171 _,
172172 _,
173- ( Blk_record _ | Blk_module _ | Blk_poly_var _ | Blk_extension
173+ ( Blk_record _ | Blk_module _ | Blk_poly_var _ | Blk_extension _
174174 | Blk_record_ext _ | Blk_record_inlined _ | Blk_constructor _ ) )
175175 | Object _ ->
176176 true
@@ -774,7 +774,7 @@ and expression_desc cxt ~(level : int) f x : cxt =
774774 (Lit Literals. polyvar_value, value);
775775 ])
776776 | _ -> assert false )
777- | Caml_block (el , _ , _ , ((Blk_extension | Blk_record_ext _ ) as ext )) ->
777+ | Caml_block (el , _ , _ , ((Blk_extension _ | Blk_record_ext _ ) as ext )) ->
778778 expression cxt ~level f (exn_block_as_obj ~stack: false el ext)
779779 | Caml_block (el , _ , tag , Blk_record_inlined p ) ->
780780 let untagged = Ast_untagged_variants. process_untagged p.attrs in
@@ -1236,7 +1236,7 @@ and statement_desc top cxt f (s : J.statement_desc) : cxt =
12361236 | Throw e ->
12371237 let e =
12381238 match e.expression_desc with
1239- | Caml_block (el , _ , _ , ((Blk_extension | Blk_record_ext _ ) as ext )) ->
1239+ | Caml_block (el , _ , _ , ((Blk_extension _ | Blk_record_ext _ ) as ext )) ->
12401240 { e with expression_desc = (exn_block_as_obj ~stack: true el ext).expression_desc }
12411241 | exp -> { e with expression_desc = (exn_ref_as_obj exp).expression_desc }
12421242 in
0 commit comments