File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -2651,17 +2651,19 @@ and type_structure ?(toplevel = false) ?(keep_warnings = false) funct_body ancho
2651
2651
(fun rs info -> Sig_type (info.typ_id, info.typ_type, rs, Exported ))
2652
2652
decls []
2653
2653
in
2654
- let shape_map = List. fold_left
2655
- (fun shape_map -> function
2656
- | Sig_type (id , vd , _ , _ ) ->
2654
+ let shape_map = List. fold_left2
2655
+ (fun shape_map sig_item type_decl ->
2656
+ match sig_item with
2657
+ | Sig_type (id , td , _ , _ ) ->
2657
2658
if not (Btype. is_row_name (Ident. name id)) then begin
2658
- Env. register_uid vd .type_uid vd.type_loc ;
2659
- Shape.Map. add_type shape_map id vd .type_uid
2659
+ Env. register_uid td .type_uid type_decl.typ_name.loc ;
2660
+ Shape.Map. add_type shape_map id td .type_uid
2660
2661
end else shape_map
2661
2662
| _ -> assert false
2662
2663
)
2663
2664
shape_map
2664
2665
items
2666
+ decls
2665
2667
in
2666
2668
Tstr_type (rec_flag, decls),
2667
2669
items,
You can’t perform that action at this time.
0 commit comments