Confusing error message from erlc

Kostis Sagonas kostis@REDACTED
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:

================================
-module(bar).
-export(test/0).

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.

Kostis


More information about the erlang-bugs mailing list