Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit def9fa0

Browse files
author
Maxim
committed
Remove processing of "res.async" in arrowType.
Type expressions can't use the "async" keyword.
1 parent dac36b8 commit def9fa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/res_parsetree_viewer.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let arrowType ct =
1111
process attrsBefore (arg :: acc) typ2
1212
| {
1313
ptyp_desc = Ptyp_arrow (Nolabel, _typ1, _typ2);
14-
ptyp_attributes = [({txt = "bs" | "res.async"}, _)];
14+
ptyp_attributes = [({txt = "bs"}, _)];
1515
} ->
1616
(* stop here, the uncurried attribute always indicates the beginning of an arrow function
1717
* e.g. `(. int) => (. int)` instead of `(. int, . int)` *)

0 commit comments

Comments
 (0)