[erlang-bugs] strange warning from the compiler

Torbjorn Tornkvist <>
Fri Sep 14 16:20:04 CEST 2007


Compiling the following code:
-----------------------------------
-module(aaa).
-export([a/0]).

-record(hello, {a,b}).

a() ->
    (#hello{})#hello.a.
------------------------------------

Gives me:

erlc aaa.erl
./aaa.erl:7: Warning: this clause cannot match because a previous clause
at line 7 always matches


Cheers, Tobbe




More information about the erlang-bugs mailing list