@@ -75,9 +75,6 @@ let typ_mapper (self : Bs_ast_mapper.mapper) (ty : Parsetree.core_type) =
7575 match fst (Ast_attributes. process_attributes_rev ty.ptyp_attributes) with
7676 | Meth_callback _ ->
7777 Ast_typ_uncurry. to_method_callback_type loc self arg.lbl arg.typ body
78- | Method _ ->
79- (* Treat @meth as making the type uncurried, for backwards compatibility *)
80- Ast_typ_uncurry. to_uncurry_type loc self arg.lbl arg.typ body
8178 | Nothing -> Bs_ast_mapper. default_mapper.typ self ty)
8279 | Ptyp_object (methods , closed_flag ) ->
8380 let ( +> ) attr (typ : Parsetree.core_type ) =
@@ -92,8 +89,6 @@ let typ_mapper (self : Bs_ast_mapper.mapper) (ty : Parsetree.core_type) =
9289 let attrs, core_type =
9390 match Ast_attributes. process_attributes_rev attrs with
9491 | Nothing , attrs -> (attrs, ty) (* #1678 *)
95- | Method _ , _ ->
96- Location. raise_errorf ~loc " %@get/set conflicts with %@meth"
9792 | Meth_callback attr , attrs -> (attrs, attr +> ty)
9893 in
9994 Ast_compatible. object_field name attrs (self.typ self core_type)
@@ -102,8 +97,6 @@ let typ_mapper (self : Bs_ast_mapper.mapper) (ty : Parsetree.core_type) =
10297 let attrs, core_type =
10398 match Ast_attributes. process_attributes_rev attrs with
10499 | Nothing , attrs -> (attrs, ty)
105- | Method _ , _ ->
106- Location. raise_errorf ~loc " %@get/set conflicts with %@meth"
107100 | Meth_callback attr , attrs -> (attrs, attr +> ty)
108101 in
109102 Ast_compatible. object_field name attrs
@@ -114,7 +107,6 @@ let typ_mapper (self : Bs_ast_mapper.mapper) (ty : Parsetree.core_type) =
114107 let attrs, core_type =
115108 match Ast_attributes. process_attributes_rev ptyp_attrs with
116109 | Nothing , attrs -> (attrs, ty)
117- | Method attr , attrs -> (attrs, attr +> ty)
118110 | Meth_callback attr , attrs -> (attrs, attr +> ty)
119111 in
120112 Ast_compatible. object_field label attrs (self.typ self core_type)
0 commit comments