@@ -104,7 +104,7 @@ let exn_block_as_obj ~(stack : bool) (el : J.expression list) (ext : J.tag_info)
104
104
: J.expression =
105
105
let field_name =
106
106
match ext with
107
- | Blk_extension -> (
107
+ | Blk_extension _ -> (
108
108
fun i ->
109
109
match i with 0 -> Literals. exception_id | i -> " _" ^ string_of_int i)
110
110
| Blk_record_ext { fields = ss } -> (
@@ -170,7 +170,7 @@ let exp_need_paren (e : J.expression) =
170
170
( _,
171
171
_,
172
172
_,
173
- ( Blk_record _ | Blk_module _ | Blk_poly_var _ | Blk_extension
173
+ ( Blk_record _ | Blk_module _ | Blk_poly_var _ | Blk_extension _
174
174
| Blk_record_ext _ | Blk_record_inlined _ | Blk_constructor _ ) )
175
175
| Object _ ->
176
176
true
@@ -774,7 +774,7 @@ and expression_desc cxt ~(level : int) f x : cxt =
774
774
(Lit Literals. polyvar_value, value);
775
775
])
776
776
| _ -> assert false )
777
- | Caml_block (el , _ , _ , ((Blk_extension | Blk_record_ext _ ) as ext )) ->
777
+ | Caml_block (el , _ , _ , ((Blk_extension _ | Blk_record_ext _ ) as ext )) ->
778
778
expression cxt ~level f (exn_block_as_obj ~stack: false el ext)
779
779
| Caml_block (el , _ , tag , Blk_record_inlined p ) ->
780
780
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 =
1236
1236
| Throw e ->
1237
1237
let e =
1238
1238
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 )) ->
1240
1240
{ e with expression_desc = (exn_block_as_obj ~stack: true el ext).expression_desc }
1241
1241
| exp -> { e with expression_desc = (exn_ref_as_obj exp).expression_desc }
1242
1242
in
0 commit comments