Skip to content

Commit

Permalink
Fix attr={...} error
Browse files Browse the repository at this point in the history
  • Loading branch information
msaraiva committed Oct 20, 2024
1 parent 6c55707 commit 5a11bc4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/surface/compiler/parse_tree_translator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ defmodule Surface.Compiler.ParseTreeTranslator do
_state,
_context
) do
{:expr, value, _expr_meta} = expr
value =
case expr do
{:expr, value, _expr_meta} -> value
nil -> ""
end

message = """
cannot assign `{...#{value}}` to attribute `#{name}`. \
Expand Down

0 comments on commit 5a11bc4

Please sign in to comment.