[erlang-bugs] Wrong warning when dispatching to a literal tuple

José Valim <>
Fri Dec 13 09:25:31 CET 2013

The following code:


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:


*José Valim*
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.html>

More information about the erlang-bugs mailing list