Skip to content

Commit

Permalink
Add missing bounded dynamic cases in occurrence
Browse files Browse the repository at this point in the history
Summary: The case `BoundedDynamicType` was missing in some places in `Occurrence`, leading to incomplete refinements. Adding those.

Reviewed By: ilya-klyuchnikov

Differential Revision: D62571460

fbshipit-source-id: 3d87359db239932dbfbdc220736cb54b2b2631a7
  • Loading branch information
VLanvin authored and facebook-github-bot committed Sep 12, 2024
1 parent 397f97c commit 22859ce
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,9 @@ map_f4(F, Ts) -> lists:map(F, Ts).

-spec map_f5(fun((term()) -> atom()), [term()]) -> [atom()].
map_f5(F, Ts) -> map_f4(F, Ts).

-spec union_funs(eqwalizer:dynamic(fun((atom()) -> ok) | foo)) -> ok.
union_funs(F) ->
case F of
Fun when is_function(Fun, 1) -> F(abc)
end.

0 comments on commit 22859ce

Please sign in to comment.