[erlang-bugs] Warning shows the wrong operator when useless operator is inside a useless contruction

Shayan Pooya shayan@REDACTED
Sun Jul 27 22:56:04 CEST 2014


I created this PR for this issue:
https://github.com/erlang/otp/pull/439


On Sat, Jul 19, 2014 at 12:11 PM, José Valim <
jose.valim@REDACTED> wrote:

> Given the following code:
>
> -module(foo).
> -compile(export_all).
>
> bar() ->
>   [{foo, hello:world() == bar}],
>   ok.
>
>
> When compiled, it reports:
>
> foo.erl:5: Warning: a term is constructed, but never used
> foo.erl:5: Warning: use of operator '=:=' has no effect
>
>
> The second warning is wrong. It must be refer to the operator '==' and not
> '=:='.
>
> *José Valim*
> www.plataformatec.com.br
> Skype: jv.ptec
> Founder and Lead Developer
>
> _______________________________________________
> erlang-bugs mailing list
> erlang-bugs@REDACTED
> http://erlang.org/mailman/listinfo/erlang-bugs
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20140727/33581b7b/attachment.htm>


More information about the erlang-bugs mailing list