[erlang-questions] Re: Optional callbacks

Hans Bolinder hans.bolinder@REDACTED
Mon Aug 17 15:13:53 CEST 2015


Hi,

[Loïc Hoguin [essen@REDACTED:]
> Started trying to play with those, and not managing to get a warning
> from Dialyzer.

I tried adding

  -optional_callbacks([sample_callback_1/0,
		       sample_callback_2/0,
		       sample_callback_3/0,
		       sample_callback_4/1,
		       sample_callback_5/1,
		       sample_callback_6/3]).

to lib/dialyzer/test/behaviour_SUITE_data/src/sample_behaviour/sample_behaviour.erl, and got the expected Dialyzer messages, so I guess it's more complicated than that. Could you please provide an example?

Best regards,

Hans Bolinder, Erlang/OTP team, Ericsson



More information about the erlang-questions mailing list