gradient
gradient copied to clipboard
Phoenix Verified routes cause `The operator '==' on line _ requires arguments of compatible types.`
Hi!
Checking out this project and it looks really interesting.
Unfortunately, I ran into an issue where having a verified route from the latest Phoenix release always causes
lib/_/web/live/__live.ex: The operator '==' on line __ requires arguments of compatible types.
However, it has arguments of type binary() and binary()
The relevant code is simply a HEEx template with ~p"/dashboard"
on the offending (to Gradient) line. I haven't dug into the specifics of verified routes, so that's all I got for now.
Hi @cschmatzler!
The arguments of type binary() and binary()
part looks really puzzling, indeed. It seems to be an upstream (Gradualizer) bug, but we'll have to dig into it to tell with certainty. Thanks for raising this!