Skip to content

Commit

Permalink
Fix expression-tag pairing inside with type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Dec 30, 2024
1 parent 6dbb932 commit 7e14961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elixir/lib/module/types/expr.ex
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ defmodule Module.Types.Expr do

defp with_clause({:<-, _meta, [left, right]} = expr, stack, context) do
{pattern, guards} = extract_head([left])
{_type, context} = Pattern.of_match(pattern, guards, dynamic(), :with, expr, stack, context)
{_type, context} = Pattern.of_match(pattern, guards, dynamic(), expr, :with, stack, context)
{_, context} = of_expr(right, stack, context)
context
end
Expand Down

0 comments on commit 7e14961

Please sign in to comment.