Skip to content

Macro.Env.expand_import raises on ambiguous call #13573

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

Closed
lukaszsamson opened this issue May 19, 2024 · 0 comments
Closed

Macro.Env.expand_import raises on ambiguous call #13573

lukaszsamson opened this issue May 19, 2024 · 0 comments

Comments

@lukaszsamson
Copy link
Contributor

Elixir and Erlang/OTP versions

Erlang/OTP 26 [erts-14.2.1] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit]

Elixir 1.17.0-dev (93a1dba) (compiled with Erlang/OTP 26)

Operating system

any

Current behavior

iex(1)> import :erlang, only: [exit: 1], warn: false
:erlang
iex(2)> Macro.Env.expand_import(__ENV__, [], :exit, 1, trace: false)
error: function exit/1 imported from both :erlang and Kernel, call is ambiguous
└─ iex

** (CompileError) cannot compile code (errors have been logged)

Expected behavior

:error returned or first matching import

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant