Skip to content

Commit

Permalink
infer parenthetical
Browse files Browse the repository at this point in the history
but should we ensure that it is `T.Obj`?
  • Loading branch information
ggreif committed Aug 12, 2024
1 parent cf7cfa4 commit 84e42e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mo_frontend/typing.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1617,9 +1617,10 @@ and infer_exp'' env exp : T.typ =
check_exp_strong env T.throw exp1
end;
T.Non
| AsyncE (_, s, typ_bind, exp1) ->
| AsyncE (par_opt, s, typ_bind, exp1) ->
error_in Flags.[WASIMode; WasmMode] env exp1.at "M0086"
"async expressions are not supported";
ignore (Option.map (infer_exp env) par_opt); (* TODO: in restricted environment? *)
let t1, next_cap = check_AsyncCap env "async expression" exp.at in
let c, tb, ce, cs = check_typ_bind env typ_bind in
let ce_scope = T.Env.add T.default_scope_var c ce in (* pun scope var with c *)
Expand Down

0 comments on commit 84e42e1

Please sign in to comment.