Skip to content

Commit f1e7900

Browse files
committed
clean up
1 parent 750d667 commit f1e7900

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

jscomp/syntax/external_process.ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ let handle_attributes
374374
{[ int -> int -> (int -> int -> int [@bs.uncurry])]}
375375
It does not make sense
376376
*)
377-
if has_bs_uncurry type_annotation.Parsetree.ptyp_attributes then
377+
if has_bs_uncurry type_annotation.ptyp_attributes then
378378
begin
379379
Location.raise_errorf
380380
~loc "[@@bs.uncurry] can not be applied to the whole definition"
@@ -384,7 +384,8 @@ let handle_attributes
384384
if String.length prim_name = 0 then `Nm_val pval_prim
385385
else `Nm_external prim_name (* need check name *)
386386
in
387-
let result_type, arg_types_ty =
387+
let result_type, arg_types_ty =
388+
(* Note this assumes external type is syntatic (no abstraction)*)
388389
Ast_core_type.list_of_arrow type_annotation in
389390
if has_bs_uncurry result_type.ptyp_attributes then
390391
begin

0 commit comments

Comments
 (0)