Skip to content

Function call without opaqueness type mismatch in OTP 28 #428

@woylie

Description

@woylie

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions