@@ -98,7 +98,7 @@ let type_open :
98
98
let type_package =
99
99
ref (fun _ -> assert false )
100
100
101
- (* Forward declaration, to be filled in by Typeclass.class_structure *)
101
+ (* Forward declaration, to be filled in by Typemod.type_package *)
102
102
103
103
(*
104
104
Saving and outputting type information.
@@ -200,7 +200,7 @@ let iter_expression f e =
200
200
| Pstr_exception _
201
201
| Pstr_modtype _
202
202
| Pstr_open _
203
- | Pstr_class_type _
203
+ | Pstr_class_type ()
204
204
| Pstr_attribute _
205
205
| Pstr_extension _ -> ()
206
206
| Pstr_include {pincl_mod = me}
@@ -1638,7 +1638,7 @@ and is_nonexpansive_mod mexp =
1638
1638
List. for_all
1639
1639
(fun item -> match item.str_desc with
1640
1640
| Tstr_eval _ | Tstr_primitive _ | Tstr_type _
1641
- | Tstr_modtype _ | Tstr_open _ | Tstr_class_type _ -> true
1641
+ | Tstr_modtype _ | Tstr_open _ | Tstr_class_type () -> true
1642
1642
| Tstr_value (_ , pat_exp_list ) ->
1643
1643
List. for_all (fun vb -> is_nonexpansive vb.vb_expr) pat_exp_list
1644
1644
| Tstr_module {mb_expr= m;_}
@@ -1654,7 +1654,7 @@ and is_nonexpansive_mod mexp =
1654
1654
(function {ext_kind = Text_decl _ } -> false
1655
1655
| {ext_kind = Text_rebind _ } -> true )
1656
1656
te.tyext_constructors
1657
- | Tstr_class _ -> false (* could be more precise *)
1657
+ | Tstr_class () -> assert false (* impossible *)
1658
1658
| Tstr_attribute _ -> true
1659
1659
)
1660
1660
str.str_items
0 commit comments