Confusing error message from erlc

Kostis Sagonas <>
Tue Oct 5 22:51:17 CEST 2010

This is a bit silly, but I discovered that if one forgets the list in an 
export declaration, the warning message that she gets presented is a bit 
confusing. For example:


test() -> 42.

% erlc bar.erl
./bar.erl:2: bad function arity
./bar.erl:4: Warning: function test/0 is unused

Not a big deal, but somebody may want to fix that.


More information about the erlang-bugs mailing list