gradient icon indicating copy to clipboard operation
gradient copied to clipboard

Phoenix Verified routes cause `The operator '==' on line _ requires arguments of compatible types.`

Open cschmatzler opened this issue 2 years ago • 1 comments

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.

cschmatzler avatar Dec 22 '22 11:12 cschmatzler

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!

erszcz avatar Dec 22 '22 13:12 erszcz