We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c39d233 commit 821b249Copy full SHA for 821b249
jscomp/frontend/bs_ast_invariant.ml
@@ -142,7 +142,12 @@ let emit_external_warnings : iterator=
142
| Pexp_new _ ->
143
Location.raise_errorf ~loc:a.pexp_loc
144
"OCaml style objects are not supported"
145
- (* | Pexp_send *)
+ | Pexp_send (obj, _) ->
146
+ begin match obj with
147
+ | {pexp_desc = Pexp_apply ({pexp_desc = Pexp_ident ({txt = Ldot(_,"unsafe_downgrade")})},_)} -> ()
148
+ | _ -> Location.raise_errorf ~loc:a.pexp_loc
149
+ "OCaml style objects are not supported"
150
+ end
151
| _ -> super.expr self a
152
);
153
label_declaration = (fun self lbl ->
0 commit comments