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

Organize aliases can change what an alias refers to #809

Open
borisbabic opened this issue Aug 2, 2024 · 1 comment
Open

Organize aliases can change what an alias refers to #809

borisbabic opened this issue Aug 2, 2024 · 1 comment

Comments

@borisbabic
Copy link

Example:

defmodule Foo.Bar do
end
defmodule Baz.Foo do
end
defmodule Test do
  alias Foo.Bar
  alias Baz.Foo
end

Organize aliases in module Test will swap the order of the aliases causing the alias Foo.Bar to alias the module Baz.Foo.Bar instead of Foo.Bar

@scohen
Copy link
Collaborator

scohen commented Aug 8, 2024

This is from the elixir discord, and is pretty edge-casey, but real.

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

2 participants