Fix dialyzer warnings

This commit is contained in:
Gaith Hallak 2022-10-23 11:23:28 +03:00
parent ce24f0bc67
commit f9b8114c0c

View File

@ -180,7 +180,7 @@ ast_to_fcode(Code, Options) ->
fun (_, FC) -> optimize(FC, Options) end, fun (_, FC) -> optimize(FC, Options) end,
maps:get(child_con_env, Env1) maps:get(child_con_env, Env1)
)}, )},
Env3 = Env2#{ saved_fresh_names => get(saved_fresh_names) }, Env3 = Env2#{ saved_fresh_names := get(saved_fresh_names) },
clear_fresh_names(), clear_fresh_names(),
clear_saved_fresh_names(), clear_saved_fresh_names(),
{Env3, FCode2}. {Env3, FCode2}.
@ -238,7 +238,8 @@ init_env(Options) ->
["Chain", "GAAttachTx"] => #con_tag{ tag = 21, arities = ChainTxArities } ["Chain", "GAAttachTx"] => #con_tag{ tag = 21, arities = ChainTxArities }
}, },
options => Options, options => Options,
functions => #{} functions => #{},
saved_fresh_names => #{}
}. }.
-spec builtins() -> builtins(). -spec builtins() -> builtins().