You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ mix dialyzer --format=dialyxir
Finding suitable PLTs
Checking PLT...
[:compiler, :connection, :crypto, :db_connection, :decimal, :ecto, :elixir, :kernel, :logger, :poison, :poolboy, :postgrex, :stdlib]
PLT is up to date!
Starting Dialyzer
[
check_plt: false,
init_plt: '/Users/wojtek/src/elixir-ecto/dummy/_build/dev/dialyxir_erlang-21.0.9_elixir-1.8.0-dev_deps-dev.plt',
files_rec: ['/Users/wojtek/src/elixir-ecto/dummy/_build/dev/lib/dummy/ebin'],
warnings: [:unknown]
]
Total errors: 2, Skipped: 0
done in 0m0.9s
lib/dummy.ex:27:no_return
Function foo/1 has no local return.
________________________________________________________________________________
lib/dummy.ex:28:call_without_opaque
The call Ecto.Multi.to_list(_multi@1::#{'__struct__':='Elixir.Ecto.Multi', _=>_}) does not have an opaque term of type 'Elixir.Ecto.Multi':t() in 1.
________________________________________________________________________________
Since it's pretty common to pattern match on Multi struct, but not internals, should we change:
Environment
Current behavior
This code:
raises following dialyzer error:
Since it's pretty common to pattern match on Multi struct, but not internals, should we change:
to:
?
Expected behavior
no error.
cc @AndrewDryga
The text was updated successfully, but these errors were encountered: