Skip to content

Commit

Permalink
do the same for @timer_helper too
Browse files Browse the repository at this point in the history
  • Loading branch information
ggreif committed Jan 14, 2025
1 parent 4a0c1b1 commit 4aaefba
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/lowering/desugar.ml
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,9 @@ and call_system_func_opt name es obj_typ =
blockE
[ expD T.(callE (varE (var id.it note)) [Any]
(varE (var "@set_global_timer" Mo_frontend.Typing.global_timer_set_type))) ]
(callE
(varE (var "@check_timer_send" T.(Func (Local, Returns, [], [], [])))) [T.Any]
(unitE())) in
T.(callE
(varE (var "@check_timer_send" (Func (Local, Returns, [], [], [])))) [Any]
(unitE())) in
{ timer with at }
| "heartbeat" ->
blockE
Expand Down Expand Up @@ -608,7 +608,9 @@ and build_actor at ts self_id es obj_typ =
| None when !Mo_config.Flags.global_timer ->
blockE
[ expD T.(callE (varE (var "@timer_helper" Mo_frontend.Typing.heartbeat_type)) [unit] (unitE())) ]
(unitE ())
T.(callE
(varE (var "@check_timer_send" (Func (Local, Returns, [], [], [])))) [Any]
(unitE()))
| None -> tupE []);
inspect =
(match call_system_func_opt "inspect" es obj_typ with
Expand Down

0 comments on commit 4aaefba

Please sign in to comment.