Skip to content

Commit acb5832

Browse files
sabiwarajosevalim
authored andcommitted
Fix dialyzer tests in OTP26 (#12486)
1 parent f026cb3 commit acb5832

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

lib/elixir/test/elixir/kernel/dialyzer_test.exs

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,26 @@ defmodule Kernel.DialyzerTest do
2222
end
2323

2424
# Add a few key Elixir modules for types and macro functions
25-
mods = [:elixir, :elixir_env, Atom, Enum, Exception, Kernel, Macro, Macro.Env, String]
25+
mods = [
26+
:elixir,
27+
:elixir_env,
28+
ArgumentError,
29+
Atom,
30+
Enum,
31+
Exception,
32+
ExUnit.AssertionError,
33+
ExUnit.Assertions,
34+
IO,
35+
Kernel,
36+
Kernel.Utils,
37+
List,
38+
Macro,
39+
Macro.Env,
40+
Module,
41+
String,
42+
String.Chars
43+
]
44+
2645
files = Enum.map(mods, &:code.which/1)
2746
dialyzer_run(analysis_type: :plt_build, output_plt: plt, apps: [:erts], files: files)
2847

@@ -102,6 +121,7 @@ defmodule Kernel.DialyzerTest do
102121

103122
copy_beam!(context, ProtocolOpaque)
104123
copy_beam!(context, ProtocolOpaque.Entity)
124+
copy_beam!(context, ProtocolOpaque.Entity.Any)
105125
copy_beam!(context, ProtocolOpaque.Duck)
106126
assert_dialyze_no_warnings!(context)
107127

0 commit comments

Comments
 (0)