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

Warnings in Elixir 1.18 #142

Closed
hkrutzer opened this issue Jan 15, 2025 · 2 comments
Closed

Warnings in Elixir 1.18 #142

hkrutzer opened this issue Jan 15, 2025 · 2 comments

Comments

@hkrutzer
Copy link

warning: the following clause will never match:
    {:error, _, _, _, _, _} = error
because it attempts to match on the result of:
    choice_with_empty__0(binary, [], [], context, line, byte_offset)
which has type:
    dynamic({:ok, term(), term(), term(), term(), term()})
└─ test/nimble_parsec_test.exs: NimbleParsecTest.choice_with_empty/2

warning: the following clause will never match:
    {:error, _, _, _, _, _} = error
because it attempts to match on the result of:
    optional_ascii__0(binary, [], [], context, line, byte_offset)
which has type:
    dynamic({:ok, term(), term(), term(), term(), term()})
└─ test/nimble_parsec_test.exs: NimbleParsecTest.optional_ascii/2

This shows up in our code as well, causing mix compile --warnings-as-errors to fail.

@josevalim
Copy link
Member

v1.4.1 is out.

@hkrutzer
Copy link
Author

Much appreciated!

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

2 participants