小编Raa*_*444的帖子

我如何解决 Dialyzer 中的“因为成功输入是 [...] 而合同是...”而永远不会返回?

我正在使用 Dialyzer 修复 Erlang 代码中的错误。

io:format(IoDevice, "[]");
Run Code Online (Sandbox Code Playgroud)

此行产生以下错误:

The call io:format(IoDevice::pid(),[91 | 93,...]) 
  will never return since the success typing is
  (atom() | binary() | string(),[any()]) -> 'ok' 
  and the contract is (Format,Data) -> 'ok' 
  when Format :: format(), Data :: [term()]
Run Code Online (Sandbox Code Playgroud)

我无法理解问题出在哪里有人可以解释一下吗?

谢谢

erlang dialyzer

2
推荐指数
1
解决办法
137
查看次数

标签 统计

dialyzer ×1

erlang ×1