After upgrading from OTP 27 to 28, I'm getting this dialyzer warning:
lib/my_app_web_web/gettext.ex:1:call_without_opaque
Function call without opaqueness type mismatch.
Call does not have expected term of type
binary()
| {_,
integer()
| %Expo.PluralForms{
:nplurals => pos_integer(),
:plural => Expo.PluralForms.plural_ast()
}}
(with opaque subterms) in the 1st position.
Gettext.Plural.plural({<<106, 97>>, %Expo.PluralForms{:nplurals => 1, :plural => 0}}, _ :: any())
Content of the MyAppWeb.Gettext:
defmodule MyAppWeb.Gettext do
use Gettext.Backend, otp_app: :my_app
end
config.exs:
config :gettext, :default_locale, "ja"
I found related issues in the Elixir repo:
This occurs in Gettext 1.0.2, Expo 1.1.1, Elixir 1.19.5, OTP 28.3.