[erlang-questions] type specification of functions with same signature
Sun Oct 23 00:34:08 CEST 2016
On 10/22/2016 11:48 AM, Karlo Kuna wrote:
> is there way to achieve this in current erlang
This doesn't feel like a straightforward way to achieve it, but
functions that implement behavior callbacks appear to have the same
specification as the behavior callback.
dialyzer reports when the implemented callback deviates from the
callback definition, and you don't need to annotate the implementing
function(s) with "-spec" lines.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: OpenPGP digital signature
More information about the erlang-questions