We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Elixir & Erlang/OTP versions (elixir --version): 1.13.4
Which version of Dialyxir are you using? (cat mix.lock | grep dialyxir): 1.2.0
dializer succeeds in Foo.test_1/0 But Foo.test_2/0 failed
Foo.test_1/0
Foo.test_2/0
defmodule Foo do def test_1() do with {:ok, _} <- aa(), {:ok, _} <- bb(), {:ok, _} <- cc() do :success else nil -> :error_c {:error, _} -> :error_a {:error, _, _} -> :error_b end end def test_2() do with {:ok, _} <- aa(), {:ok, _} <- bb(), {:ok, _} <- cc() do :success else nil -> :error_c err -> case err do {:error, _} -> :error_a {:error, _, _} -> :error_b end end end defp aa() do if Enum.random(0..1) == 1 do {:ok, 1} else {:error, 2} end end defp bb() do if Enum.random(0..1) == 1 do {:ok, 3} else {:error, 4, 5} end end defp cc() do if Enum.random(0..1) == 1 do {:ok, 6} else nil end end end
Everyone needs to succeed. all functions(test_1, test_2) work successfully.
test_1
test_2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Precheck
Environment
Elixir & Erlang/OTP versions (elixir --version): 1.13.4
Which version of Dialyxir are you using? (cat mix.lock | grep dialyxir): 1.2.0
Current behavior
dializer succeeds in
Foo.test_1/0
ButFoo.test_2/0
failedExpected behavior
Everyone needs to succeed.
all functions(
test_1
,test_2
) work successfully.The text was updated successfully, but these errors were encountered: