[erlang-questions] How handle Error in Dialyzer

Kostis Sagonas kostis@REDACTED
Mon Oct 9 19:06:11 CEST 2017


On 10/09/2017 04:17 PM, Lutz Behnke wrote:
> I am confused!
> 
> Where did you pull that message from?

Eshell V9.1.1  (abort with ^G)
1> 
["dim_3_tree_map.erl",58,"14",58,32,[73,108,108,101,103,97,108,32,100,101,99,108,97,114,97,116,105,111,110,32,111,102,32,35,"dim_3_map",123,"map",125,10]].
["dim_3_tree_map.erl",58,"14",58,32,
  [73,108,108,101,103,97,108,32,100,101,99,108,97,114,97,116,
   105,111,110,32,111,102,32|...]]
2> io:format("~s", [v(1)]).
dim_3_tree_map.erl:14: Illegal declaration of #dim_3_map{map}
ok


It was there all along ;)

Kostis


> Am 09.10.2017 um 11:08 schrieb Hans Bolinder:
>> Hi,
>>
>> The reason is
>>
>> "dim_3_tree_map.erl:14: Illegal declaration of #dim_3_map{map}\n"
>>
>> This is possibly due to the 'map' field having a type that is not
>> a subtype of the field's declared type.
>>
>> I'm not sure why the error is reported in such a harsh way, or if it's
>> indented to be that way. It may take a while before I have the
>> opportunity to check the details, though.
>>
>> Best regards,
>>
>> Hans Bolinder, Erlang/OTP team, Ericsson
>>
>>
> 
> 
> 
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
> 




More information about the erlang-questions mailing list