Skip to content

Use call spec when determining types of variables #205

@lukaszsamson

Description

@lukaszsamson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions