Skip to content

Commit

Permalink
Solve the problem
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Oct 12, 2019
1 parent 58d9ee8 commit cd9d8ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/typechecker.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2783,7 +2783,11 @@ type_check_comprehension_in(Env, ResTy, bc, Expr, P, []) ->
[{integer, erl_anno:new(0), 0},
{integer, erl_anno:new(0), 1}]};
_ ->
throw({type_error, bc, P, ResTy})
case subtype({type, erl_anno:new(0), binary, []}, ResTy, Env) of
{true, _} -> ResTy;
false ->
throw({type_error, bc, P, ResTy})
end
end,
{_VB, Cs} = type_check_expr_in(Env, ExprTy, Expr),
{#{}, Cs};
Expand Down
File renamed without changes.

0 comments on commit cd9d8ca

Please sign in to comment.