@@ -254556,10 +254556,10 @@ let is_inline : attr -> bool =
254556
254556
let has_inline_payload (attrs : t) = Ext_list.find_first attrs is_inline
254557
254557
254558
254558
let is_await : attr -> bool =
254559
- fun ({ txt }, _) -> txt = "await"
254559
+ fun ({ txt }, _) -> txt = "await" || txt = "res.await"
254560
254560
254561
254561
let is_async : attr -> bool =
254562
- fun ({ txt }, _) -> txt = "async"
254562
+ fun ({ txt }, _) -> txt = "async" || txt = "res.async"
254563
254563
254564
254564
let has_await_payload (attrs : t) = Ext_list.find_first attrs is_await
254565
254565
let has_async_payload (attrs : t) = Ext_list.find_first attrs is_async
@@ -270218,7 +270218,7 @@ and transl_exp0 (e : Typedtree.expression) : Lambda.lambda =
270218
270218
| Texp_let (rec_flag, pat_expr_list, body) ->
270219
270219
transl_let rec_flag pat_expr_list (transl_exp body)
270220
270220
| Texp_function { arg_label = _; param; cases; partial } ->
270221
- let async = e.exp_attributes |> List.exists (fun ({txt}, _payload) -> txt = "async") in
270221
+ let async = e.exp_attributes |> List.exists (fun ({txt}, _payload) -> txt = "async" || txt = "res.async" ) in
270222
270222
let params, body, return_unit =
270223
270223
let pl = push_defaults e.exp_loc [] cases partial in
270224
270224
transl_function e.exp_loc partial param pl
0 commit comments