[erlang-questions] type specification of functions with same signature

Kenneth Lakin kennethlakin@REDACTED
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...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20161022/a0acb895/attachment.bin>

More information about the erlang-questions mailing list