Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/elixir/src/elixir_dispatch.erl
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ format_error({import, {conflict, Receiver}, Name, Arity}) ->
"please rename the local macro or remove the conflicting import",
[Name, Arity, elixir_aliases:inspect(Receiver), Name, Arity]);
format_error({import, {ambiguous, [Mod1, Mod2 | _]}, Name, Arity}) ->
io_lib:format("function ~ts/~B imported from both ~ts and ~ts, call is ambiguous",
io_lib:format("conflicting ~ts/~B import from modules ~ts and ~ts",
[Name, Arity, elixir_aliases:inspect(Mod1), elixir_aliases:inspect(Mod2)]);
format_error({compile_env, Name, Arity}) ->
io_lib:format("Application.~s/~B is discouraged in the module body, use Application.compile_env/3 instead", [Name, Arity]);
Expand Down
4 changes: 2 additions & 2 deletions lib/elixir/test/elixir/kernel/errors_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ defmodule Kernel.ErrorsTest do

test "function import conflict" do
assert_compile_error(
["nofile:3:16", "function exit/1 imported from both :erlang and Kernel, call is ambiguous"],
["nofile:3:16", "conflicting exit/1 import from modules :erlang and Kernel"],
~c"""
defmodule Kernel.ErrorsTest.FunctionImportConflict do
import :erlang, only: [exit: 1], warn: false
Expand All @@ -684,7 +684,7 @@ defmodule Kernel.ErrorsTest do
)

assert_compile_error(
["nofile:3:17", "function exit/1 imported from both :erlang and Kernel, call is ambiguous"],
["nofile:3:17", "conflicting exit/1 import from modules :erlang and Kernel"],
~c"""
defmodule Kernel.ErrorsTest.FunctionImportConflict do
import :erlang, only: [exit: 1], warn: false
Expand Down
2 changes: 1 addition & 1 deletion lib/iex/test/iex/interaction_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ defmodule IEx.InteractionTest do
assert capture_io(:stderr, fn ->
capture_iex("open('README.md')", [], env: __ENV__)
end) =~
~r"function open/1 imported from both File and IEx.Helpers"
~r"conflicting open/1 import from modules File and IEx.Helpers"
end

test "receive exit" do
Expand Down
Loading