We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a34f38e commit f859c9dCopy full SHA for f859c9d
lib/elixir/lib/kernel/special_forms.ex
@@ -302,6 +302,13 @@ defmodule Kernel.SpecialForms do
302
All imported modules are also required by default. `import`
303
also accepts `as:` as an option so it automatically sets up
304
an alias. Please check `alias` for more information.
305
+
306
+ ## Ambiguous function/macro names
307
308
+ If two modules `A` and `B` are imported and they both contain
309
+ a `foo` function with an arity of `1`, an error is only emitted
310
+ if an ambiguous call to `foo/1` is actually made; that is, the
311
+ errors are emitted lazily, not eagerly.
312
"""
313
defmacro import(module, opts)
314
0 commit comments