@@ -75,7 +75,6 @@ let typ_mapper (self : Bs_ast_mapper.mapper) (ty : Parsetree.core_type) =
75
75
match fst (Ast_attributes. process_attributes_rev ty.ptyp_attributes) with
76
76
| Meth_callback _ ->
77
77
Ast_typ_uncurry. to_method_callback_type loc self ~arity ty
78
- | Method _ -> Bs_ast_mapper. default_mapper.typ self ty
79
78
| Nothing -> Bs_ast_mapper. default_mapper.typ self ty)
80
79
| Ptyp_object (methods , closed_flag ) ->
81
80
let ( +> ) attr (typ : Parsetree.core_type ) =
@@ -90,8 +89,6 @@ let typ_mapper (self : Bs_ast_mapper.mapper) (ty : Parsetree.core_type) =
90
89
let attrs, core_type =
91
90
match Ast_attributes. process_attributes_rev attrs with
92
91
| Nothing , attrs -> (attrs, ty) (* #1678 *)
93
- | Method _ , _ ->
94
- Location. raise_errorf ~loc " %@get/set conflicts with %@meth"
95
92
| Meth_callback attr , attrs -> (attrs, attr +> ty)
96
93
in
97
94
Ast_compatible. object_field name attrs (self.typ self core_type)
@@ -100,8 +97,6 @@ let typ_mapper (self : Bs_ast_mapper.mapper) (ty : Parsetree.core_type) =
100
97
let attrs, core_type =
101
98
match Ast_attributes. process_attributes_rev attrs with
102
99
| Nothing , attrs -> (attrs, ty)
103
- | Method _ , _ ->
104
- Location. raise_errorf ~loc " %@get/set conflicts with %@meth"
105
100
| Meth_callback attr , attrs -> (attrs, attr +> ty)
106
101
in
107
102
Ast_compatible. object_field name attrs
@@ -113,7 +108,6 @@ let typ_mapper (self : Bs_ast_mapper.mapper) (ty : Parsetree.core_type) =
113
108
let attrs, core_type =
114
109
match Ast_attributes. process_attributes_rev ptyp_attrs with
115
110
| Nothing , attrs -> (attrs, ty)
116
- | Method attr , attrs -> (attrs, attr +> ty)
117
111
| Meth_callback attr , attrs -> (attrs, attr +> ty)
118
112
in
119
113
Ast_compatible. object_field label attrs (self.typ self core_type)
0 commit comments