Dialyxir v1.0.0 Dialyxir.Warnings.Apply View Source

The function being invoked exists, and has the correct arity, but will not succeed.

Example

defmodule Example do
  def ok() do
    fun = fn :ok -> :ok end
    fun.(:error)
  end
end