I have a function that returns the 3rd element from that tuple, also saying that it is a Macro.Env.t(). However, it isn't actually returning a Macro.Env.t() as far as I can tell, but a map with the same keys and some additional keys, w/o the struct? Not sure. But to address it on my end I did this:
|> then(fn value ->
# makes dialyzer happy?
{:ok, Map.take(value, Map.keys(%Macro.Env{}))}
end)
I don't know if that just breaks its inference or actually fixes anything though 😆
Its currently specced like so:
I have a function that returns the 3rd element from that tuple, also saying that it is a
Macro.Env.t()
. However, it isn't actually returning aMacro.Env.t()
as far as I can tell, but a map with the same keys and some additional keys, w/o the struct? Not sure. But to address it on my end I did this:I don't know if that just breaks its inference or actually fixes anything though 😆