elixir_sense icon indicating copy to clipboard operation
elixir_sense copied to clipboard

Use call spec when determining types of variables

Open lukaszsamson opened this issue 2 years ago • 0 comments

Given the code

@spec some(Struct.t()) :: :ok
def some(arg), do: :ok
...
def other(var) do
  some(var)
  var.

We can assume that var has type Struct.t()

lukaszsamson avatar Mar 07 '23 06:03 lukaszsamson