Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not support & capture #53

Open
turion opened this issue Mar 24, 2023 · 0 comments
Open

Does not support & capture #53

turion opened this issue Mar 24, 2023 · 0 comments

Comments

@turion
Copy link
Contributor

turion commented Mar 24, 2023

The following module does not type check:

defmodule TypeChecks.Enum.Map do
  @spec add_one(Enum.t()) :: Enum.t()
  def add_one(enum) do
    Enum.map(enum, &(&1 + 1))
  end
end
    ❌  TypeChecks.Enum.Map.add_one/1
        |
        | unknown call &/1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant