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

Alias resolution: alias __MODULE__, as: Self #151

Closed
giddie opened this issue Jan 10, 2022 · 1 comment
Closed

Alias resolution: alias __MODULE__, as: Self #151

giddie opened this issue Jan 10, 2022 · 1 comment

Comments

@giddie
Copy link

giddie commented Jan 10, 2022

In the following example, elixir_sense fails to resolve the Private module to which my_function is delegated.

# lib/test.ex
defmodule Test do
  alias __MODULE__, as: Self
  alias Self.Private

  defdelegate my_function(), to: Private
end

# lib/test/private.ex
defmodule Test.Private do
  def my_function() do
    IO.puts("Hello")
  end
end
@giddie
Copy link
Author

giddie commented May 15, 2022

Thank you so much for addressing this 🙏 🍺

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