Fix bugs caused by the addition of debugging symbols #955

Merged
ghallak merged 2 commits from ghallak/fix-incomplete-patterns into master 2023-06-28 23:43:41 +09:00

View File

@ -1262,7 +1262,7 @@ event_function(_Env = #{event_type := {variant_t, EventCons}}, EventType = {vari
end, end,
Indices = [ {var, [], V} || {indexed, V} <- IVars ], Indices = [ {var, [], V} || {indexed, V} <- IVars ],
Body = {builtin, [], chain_event, [Payload, Hash | Indices]}, Body = {builtin, [], chain_event, [Payload, Hash | Indices]},
{'case', {con, [], Arities, Tag, Vars}, {nosplit, [], Body}} {'case', {con, Arities, Tag, Vars}, {nosplit, [], Body}}
end, end,
#{ attrs => [private], #{ attrs => [private],
args => [{"e", EventType}], args => [{"e", EventType}],
@ -1580,7 +1580,7 @@ simpl_proj(Env, I, Expr) ->
-spec get_catchalls([fcase()]) -> [fcase()]. -spec get_catchalls([fcase()]) -> [fcase()].
get_catchalls(Alts) -> get_catchalls(Alts) ->
[ C || C = {'case', {var, _, _}, _} <- Alts ]. [ C || C = {'case', {var, _}, _} <- Alts ].
%% The scode compiler can't handle multiple catch-alls, so we need to nest them %% The scode compiler can't handle multiple catch-alls, so we need to nest them
%% inside each other. Instead of %% inside each other. Instead of