Skip to content

Commit

Permalink
Fix self-check error in typechecker:subtype/3
Browse files Browse the repository at this point in the history
  • Loading branch information
erszcz committed Mar 2, 2023
1 parent be5306f commit e7a011d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/typechecker.erl
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ subtype(Ty1, Ty2, Env) ->
false
end,
gradualizer_cache:store(?FUNCTION_NAME, {Module, Ty1, Ty2}, R),
R;
%% TODO: Gradualizer cannot tell that even if we get compat_acc() from compat(),
%% we rewrite it to {true, Constraints} :: compatible()
?assert_type(R, compatible());
{some, R} ->
%% these two types have already been seen and calculated
R
Expand Down

0 comments on commit e7a011d

Please sign in to comment.