[erlang-questions] How to force dialyzer that a function will return?
Sat Oct 13 15:01:21 CEST 2018
Let's say I have a function that does a bad thing, but I now it will
actually return. I can use the `-dialyzer` module attribute to silence the
warning about the particular function, but is there any way to convince
dialyzer to ignore that warning and assume that the function will return
(and consequently all other functions calling it will also return).
For example for the below module dialyzer still warns:
dt.erl:6: Function outer/0 has no local return
Dict = dict:new(),
(this is just an example, I dont want to decompose a dict)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions