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 cc018f9 commit 352a357Copy full SHA for 352a357
lib/mix/lib/mix/compilers/elixir.ex
@@ -145,10 +145,12 @@ defmodule Mix.Compilers.Elixir do
145
end
146
147
defp detect_kind(module) do
148
+ impl = Module.get_attribute(module, :impl)
149
+
150
cond do
- impl = Module.get_attribute(module, :impl) ->
151
+ is_list(impl) and impl[:protocol] ->
152
{:impl, impl[:protocol]}
- Module.get_attribute(module, :protocol) ->
153
+ is_list(Module.get_attribute(module, :protocol)) ->
154
:protocol
155
true ->
156
:module
0 commit comments