This snippet is handled just fine by Code.string_to_quoted/2 but Spitfire returns an error
defmodule Foo do
@possible_results [:a, :b, :c]
@type result_type ::
unquote(
for result <- @possible_results, reduce: [] do
acc -> {:|, [], [result, acc]}
end
)
end
This snippet is handled just fine by
Code.string_to_quoted/2
but Spitfire returns an error