Closed NobbZ closed 1 month ago
The error is 100% correct in this case. unquote({t, nil, []})
is not a valid AST, it will fail in weird place for different reasons. And while we can improve the compiler to provide better reports, it is often not as trivial. :) I will try to improve it here.
Elixir and Erlang/OTP versions
Operating system
Linux
Current behavior
A handcrafted AST fails with the following unhelpful error.
A simple change made the compilation succeed.
The change making the build suceed is this:
I was unable to produce a similarily formed reproducer, so it is very likely that in the surrounding context more relevant things are happening.
Expected behavior
A nicer error or no error at all (the snippet worked with 1.16 and 1.17)