Skip to content

Commit

Permalink
Reverse type order in the type_error
Browse files Browse the repository at this point in the history
  • Loading branch information
erszcz committed Oct 15, 2024
1 parent 64c834c commit 6210517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typechecker.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2647,7 +2647,7 @@ type_check_expr_in(Env, ResTy, Expr) ->
true ->
NewEnv;
false ->
throw(type_error(Expr, ResTy, InferredTy))
throw(type_error(Expr, InferredTy, ResTy))
end.

%-spec type_check_expr_in(Env, ResTy, Expr) -> Env when
Expand Down

0 comments on commit 6210517

Please sign in to comment.