Skip to content

Commit 251badd

Browse files
authored
Fix warning when dbg with/1 with catch-all clause (#13903)
* Fix warning when dbg with/1 with catch-all clause * Mention with/1 in dbg changelog
1 parent 656944b commit 251badd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ TODO.
2727
* [Kernel] Now verify the type of the binary generators
2828
* [Kernel] Track the type of tuples in patterns and inside `elem/2`
2929
* [List] Add `List.ends_with?/2`
30-
* [Macro] Improve `dbg` handling of `if/2` and of code blocks
30+
* [Macro] Improve `dbg` handling of `if/2`, `with/1` and of code blocks
3131
* [Process] Handle arbitrarily high integer values in `Process.sleep/1`
3232
* [String] Inspect special whitespace and zero-width characters using their Unicode representation
3333

lib/elixir/lib/macro.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2731,7 +2731,7 @@ defmodule Macro do
27312731
end)
27322732

27332733
error_clause =
2734-
quote do
2734+
quote generated: true do
27352735
{other, _acc} -> raise WithClauseError, term: other
27362736
end
27372737

0 commit comments

Comments
 (0)