Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to parse warning: [<: 1, >: 1] #504

Open
srevenant opened this issue Jun 1, 2023 · 0 comments
Open

Failed to parse warning: [<: 1, >: 1] #504

srevenant opened this issue Jun 1, 2023 · 0 comments

Comments

@srevenant
Copy link

srevenant commented Jun 1, 2023

I figured out the "problem" — in a library module we have a function defined as a callback with a default function which has 'defoverride: ...' defined for this function.

Then in the module using this library, it overrides that function, but the function head had an optional argument defined:

def build(params \\ %{}) do

Taking out the \\ %{} resolved the error.

Environment

  • Elixir & Erlang/OTP versions (elixir --version): Erlang/OTP 25 [erts-13.1.1] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit:ns] [dtrace]

Elixir 1.14.1 (compiled with Erlang/OTP 25)

  • Which version of Dialyxir are you using? (cat mix.lock | grep dialyxir): 1.3.0

Current behavior

Please file a bug in https://github.com/jeremyjh/dialyxir/issues with this message.

Failed to parse warning:
[<: 1, >: 1]


Legacy warning:
lib/rivet/ecto/collection/model.ex:54: The pattern <> can never match since previous clauses completely covered the type <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant