[erlang-questions] It appeared type error when I checked the code with dialyzer

Solomon solomon.wzs@REDACTED
Tue Dec 31 08:33:06 CET 2013


I define a function like this:

f(T) when is_tuple(T)->
  ...
  dict:to_list(T),
  ...
  Ret.

When I checked the code with dialyzer, it said, "The call
dict:to_list(T::tuple()) does not have an opaque term of type dict() as 1st
argument".

There were no function to determine whether a term was dict(). So how I
should fix this problem?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20131231/d6db2ce0/attachment.htm>


More information about the erlang-questions mailing list