Closed Munksgaard closed 9 months ago
Ideally, we should use :no_extra_return
instead of disabling all warnings, but that is not currently possible in elixir, due to this bug.
Sorry for the delay, much appreciated. I will be publishing a new release to hex soon to also ensure Elixir 1.16 there are no warnings.
🥳🥳🥳🥳🥳
I've published ex_cldr version 2.37.5 with the following changelog entry:
Fix warnings on Elixir 1.16.
Fix dialyzer warnings. Thanks to @Munksgaard for the PR. Closes #220.
Thanks again!
No, thank you for the great work you've put into the cldr-project!
Thanks for the kind words Philip, I appreciate it.
Libraries that depend on Cldr might use the
:extra_returns
feature in dialyzer, which will warn if the typespec of a function specifies return types that are not part of the success typing.My understanding is that the behavior (and therefore success typing) of
do_plural_rule depends/8
on the locale used, so we cannot accurately tell what the correct return type is. Therefore, this commit posits to silence dialyzer warnings aboutdo_plural_rule/8
.Fixes #219