D

Size: a a a
D
D
Е
ŹR
ŹR
Е
Е
ŹR
Е
D
D
Е
МБ
ŹR
LL
@spec inc(nil) :: nil
def inc(nil), do: nil
@spec inc(integer()) :: integer()
def inc(a), do: {a + 1, a + 2}
МБ
МБ
deleted: true
МБ
ŹR
D
defmodule Foo do
@spec inc(a :: integer() | :error) :: integer() | :error
def inc(:error), do: :error
def inc(a), do: {a + 1, a + 2}
end
The success typing for 'Elixir.Foo':inc/1 implies that the function might also return
{number(), number()} but the specification return is
'error' | integer()ElixirLS Dialyzer