Re: Warning shows the wrong operator when useless operator is inside a useless contruction

Shayan Pooya <[email protected]>
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <CABAubTi102p86q7gOYQO2aKm1ETseECYGZ2AH2eA7_jq+DFtOg@mail.gmail.com>
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 <
[email protected]> 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
> [email protected]
> http://erlang.org/mailman/listinfo/erlang-bugs
>
>

_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.