Closed alappe closed 2 years ago
Fixed in commit e075eb081 and published as ex_cldr version 2.26.2 with the following changelog entry:
Cldr.put_locale/2
. Thanks to @alappe for the report. Closes #167.Thanks for the report and collaboration and apologies for the inconvenience. I've added a function to dev/cldr_backend.ex to ensure dialyzer
can check the type in my CI.
Cldr.put_locale/2
uses theis_locale_name
guard:but is typed:
where
Locale.locale_name
is typed:I'm getting an error using
put_locale/2
with binary locale names. But reading the guard, this should be valid and the typing oflocale_name
should be@type locale_name() :: atom() | String.t()
.