Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorng committed Aug 28, 2023
1 parent 9d74808 commit 14e39b4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/dialyzer/src/dialyzer_utils.erl
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,13 @@ massage_forms([H | T], Defs) ->
massage_forms([], _Defs) ->
[].

massage_type({type, Loc, 'fun',
[{type, ArgsLoc, product, ArgTypes}, Ret0]},
Defs) ->
%% We must make sure that we keep the built-in `product` type here.
Args = {type, ArgsLoc, product, massage_type_list(ArgTypes, Defs)},
Ret = massage_type(Ret0, Defs),
{type, Loc, 'fun', [Args, Ret]};
massage_type({type, Loc, Name, Args0}, Defs) when is_list(Args0) ->
case sets:is_element({Name, length(Args0)}, Defs) of
true ->
Expand Down

0 comments on commit 14e39b4

Please sign in to comment.