@@ -254564,10 +254564,10 @@ let is_inline : attr -> bool =
254564254564let has_inline_payload (attrs : t) = Ext_list.find_first attrs is_inline
254565254565
254566254566let is_await : attr -> bool =
254567- fun ({ txt }, _) -> txt = "await"
254567+ fun ({ txt }, _) -> txt = "await" || txt = "res.await"
254568254568
254569254569let is_async : attr -> bool =
254570- fun ({ txt }, _) -> txt = "async"
254570+ fun ({ txt }, _) -> txt = "async" || txt = "res.async"
254571254571
254572254572let has_await_payload (attrs : t) = Ext_list.find_first attrs is_await
254573254573let has_async_payload (attrs : t) = Ext_list.find_first attrs is_async
@@ -270226,7 +270226,7 @@ and transl_exp0 (e : Typedtree.expression) : Lambda.lambda =
270226270226 | Texp_let (rec_flag, pat_expr_list, body) ->
270227270227 transl_let rec_flag pat_expr_list (transl_exp body)
270228270228 | Texp_function { arg_label = _; param; cases; partial } ->
270229- let async = e.exp_attributes |> List.exists (fun ({txt}, _payload) -> txt = "async") in
270229+ let async = e.exp_attributes |> List.exists (fun ({txt}, _payload) -> txt = "async" || txt = "res.async" ) in
270230270230 let params, body, return_unit =
270231270231 let pl = push_defaults e.exp_loc [] cases partial in
270232270232 transl_function e.exp_loc partial param pl
0 commit comments