[erlang-bugs] Wrong warning when dispatching to a literal tuple
José Valim
jose.valim@REDACTED
Fri Dec 13 09:25:31 CET 2013
The following code:
-module(foo).
-compile(export_all).
sample() -> ({ hello, 1 }):world().
Issues the following warning:
foo.erl:4: Warning: invalid module and/or function name; this call will
always fail
Which is not true if there is a "hello" module defined.
This issue has been reported here:
http://stackoverflow.com/questions/20556472/elixir-protocols-in-erlang-a-strange-warning/20561973#20561973
Thanks!
*José Valim*
www.plataformatec.com.br
Skype: jv.ptec
Founder and Lead Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20131213/f1168a1b/attachment.htm>
More information about the erlang-bugs
mailing list