[erlang-bugs] Dialyzer does not recognize erlang:list_to_integer/2

Maxim Treskin <>
Thu Mar 25 05:51:42 CET 2010


Hello

Dialyzer prints out warning that erlang:list_to_integer/2 is Unknown.

[]:/tmp $>> cat tt.erl
-module(tt).

-compile([export_all]).

hex2i("0x" ++ L) -> erlang:list_to_integer(L, 16).

[]:/tmp $>> erlc +debug_info tt.erl


[]:/tmp $>> erl
Erlang R13B04 (erts-5.7.5) [source] [smp:2:2] [rq:2] [async-threads:0]
[hipe] [kernel-poll:false]

Eshell V5.7.5  (abort with ^G)
1> tt:hex2i("0x123").
291
2>
User switch command
 --> q


[]:/tmp $>> dialyzer tt.beam
  Checking whether the PLT /home/zert/.dialyzer_plt is up-to-date... yes
  Proceeding with analysis...
Unknown functions:
  erlang:list_to_integer/2
 done in 0m3.19s
done (passed successfully)



-- 
Maxim Treskin


More information about the erlang-bugs mailing list