Skip to content

Commit 61c3c34

Browse files
committed
Do not discard context from with, closes #10538
1 parent d8faf5b commit 61c3c34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/module/types/expr.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ defmodule Module.Types.Expr do
306306
stack = push_expr_stack(expr, stack)
307307

308308
case reduce_ok(clauses, context, &with_clause(&1, stack, &2)) do
309-
{:ok, _context} -> {:ok, :dynamic, context}
309+
{:ok, context} -> {:ok, :dynamic, context}
310310
{:error, reason} -> {:error, reason}
311311
end
312312
end

0 commit comments

Comments
 (0)