试图弄清楚为什么下面的代码会产生警告
defmodule A do
def greet do
IO.puts "Inside A"
end
end
defmodule B do
def greet do
IO.puts "Inside B"
end
end
spawn(A, :greet, [])
输出
iex(14)> c("te.ex")
te.ex:1: redefining module A
te.ex:7: redefining module B
Inside A
[B, A]