[erlang-questions] Why does this happen?

t ty tty.erlang@REDACTED
Sun Jun 3 05:24:17 CEST 2007


I can cut the example down to:

Erlang (BEAM) emulator version 5.5.4 [source] [async-threads:0] [hipe]
[kernel-poll:false]

Eshell V5.5.4  (abort with ^G)
1> import(lists).
ok
2> Y = fun(Z) -> Z*Z end.

=ERROR REPORT==== 2-Jun-2007::23:22:30 ===
Error in process <0.31.0> with exit value:
{badarg,[{erlang,atom_to_list,[{module,lists}]},{erl_lint,'-unused_vars/3-fun-0-',2},{orddict,filter,2},{erl_lint,unused_vars,3},{erl_lint,check_unused_vars,3},{erl_lint,fun_clause,3},{erl_lint,'-fun_clauses/3-fun-0-'...

** exited: {badarg,[{erlang,atom_to_list,[{module,lists}]},
                    {erl_lint,'-unused_vars/3-fun-0-',2},
                    {orddict,filter,2},
                    {erl_lint,unused_vars,3},
                    {erl_lint,check_unused_vars,3},
                    {erl_lint,fun_clause,3},
                    {erl_lint,'-fun_clauses/3-fun-0-',3},
                    {lists,foldl,3}]} **



uname -a is

Linux localhost 2.6.20-16-generic #2 SMP Wed May 23 01:46:23 UTC 2007
i686 GNU/Linux


Regards

t



More information about the erlang-questions mailing list