# `Dialyxir.Warnings.CallbackSpecTypeMismatch`
[🔗](https://github.com/jeremyjh/dialyxir/blob/1.4.8/lib/dialyxir/warnings/callback_spec_type_mismatch.ex#L1)

The return type in the @spec does not match the
expected return type of the behaviour.

## Example

    defmodule ExampleBehaviour do
      @callback ok(:ok) :: :ok
    end

    defmodule Example do
      @behaviour ExampleBehaviour

      @spec ok(:ok) :: :error
      def ok(:ok) do
        :error
      end
    end

---

*Consult [api-reference.md](api-reference.md) for complete listing*
