elixir-lsp / elixir-lsp/elixir_sense

Use call spec when determining types of variables

Open
#205 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Elixir
Stars
340
Forks
43
PR merge metrics
No merged PRs in 30d

Description

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()`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.