Skip to content

Commit 9a9135e

Browse files
committed
Do not reset quote level on calls in has_unquotes/2
The bug was introduced in 146fb4e
1 parent 116f8f4 commit 9a9135e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/elixir/src/elixir_quote.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ end;
5555
has_unquotes({{'.', _, [_, unquote]}, _, [_]}, _) -> true;
5656
has_unquotes({Var, _, Ctx}, _) when is_atom(Var), is_atom(Ctx) -> false;
5757
has_unquotes({Name, _, Args}, QuoteLevel) when is_list(Args) ->
58-
has_unquotes(Name) orelse lists:any(fun(Child) -> has_unquotes(Child, QuoteLevel) end, Args);
58+
has_unquotes(Name, QuoteLevel) orelse lists:any(fun(Child) -> has_unquotes(Child, QuoteLevel) end, Args);
5959
has_unquotes({Left, Right}, QuoteLevel) ->
6060
has_unquotes(Left, QuoteLevel) orelse has_unquotes(Right, QuoteLevel);
6161
has_unquotes(List, QuoteLevel) when is_list(List) ->

0 commit comments

Comments
 (0)