Fix get_catchalls bug

This commit is contained in:
Gaith Hallak 2023-06-28 14:39:36 +04:00
parent b902226c26
commit 6fc17c2010

View File

@ -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