Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamic() conflicts with newly introduced built-in type in OTP26-rc2 #4132

Closed
moogle19 opened this issue Mar 22, 2023 · 1 comment
Closed
Labels

Comments

@moogle19
Copy link

Elixir version

1.14.3

Database and Version

Ecto Versions

3.9.5

Database Adapter and Versions (postgrex, myxql, etc)

Current behavior

Ecto fails to compile with following error:

== Compilation error in file lib/ecto/query.ex ==
** (CompileError) lib/ecto/query.ex:431: type dynamic/0 is a built-in type and it cannot be redefined
    (elixir 1.14.3) lib/kernel/typespec.ex:936: Kernel.Typespec.compile_error/2
    (stdlib 5.0) lists.erl:1599: :lists.foldl_1/3
    (elixir 1.14.3) lib/kernel/typespec.ex:226: Kernel.Typespec.translate_typespecs_for_module/2

because OTP26-rc2 introduced a new built-in type dynamic().

Expected behavior

Ecto should compile 🤷‍♂️

@josevalim
Copy link
Member

Pushed a fix to main and released v3.9.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants