Skip to content

Commit 7292261

Browse files
committed
Fix ptyp_of_type
1 parent f66694f commit 7292261

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/analysis/ptyp_of_type.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ and value_description id
172172
pval_loc = val_loc
173173
}
174174

175-
and constructor_argument { ca_type; ca_loc; ca_modalities; ca_jkind = _ } =
175+
and constructor_argument { ca_type; ca_loc; ca_modalities; ca_sort = _ } =
176176
{ Parsetree.pca_type = core_type ca_type;
177177
pca_loc = ca_loc;
178178
pca_modalities = const_modalities ~attrs:[] ca_modalities
@@ -230,6 +230,8 @@ and type_declaration id
230230
Ptype_variant (List.map ~f:constructor_declaration constrs)
231231
| Type_record (labels, _repr) ->
232232
Ptype_record (List.map ~f:label_declaration labels)
233+
| Type_record_unboxed_product (labels, _repr) ->
234+
Ptype_record_unboxed_product (List.map ~f:label_declaration labels)
233235
in
234236
let manifest = Option.map ~f:core_type type_manifest in
235237
Ast_helper.Type.mk ~attrs:type_attributes ~params ~kind ~priv:type_private

0 commit comments

Comments
 (0)