explicitly allow '*' in specs for clique_usage:register/2#3
Conversation
else, dialyzer will complain about specs like this:
clique:register_usage(["riak-admin", "tictacaae", "rebuild-schedule",
'*'], ...)
|
Can I just check I understand this correctly. Is there a need to give consistent usage advice regardless what part of the input is: i.e. if someone inputs:
This isn't relying on any clever matching rules in ets - it will match because the code will explicitly lookup '*'. Dialyzer complains because '*' is an atom(). Though |
|
The choice of I note that the issue dialyzer is taking with the spec is perfectly valid. Exactly why dialyzer in previous OTP versions didn't flag this case, is an interesting question (it is this issue being discussed here, I think).
Without |
else, dialyzer will complain about specs like this: