Skip to content

Commit 43dde95

Browse files
Update ParallelCheker.verify/2 spec (#15113)
The return type changed in a0ef7f0
1 parent 565f468 commit 43dde95

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/elixir/lib/module/parallel_checker.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ defmodule Module.ParallelChecker do
1010

1111
@type cache() :: {pid(), :ets.tid()}
1212
@type warning() :: term()
13+
@type error() :: term()
1314
@type mode() :: :erlang | :elixir | :protocol
1415

1516
@typedoc """
@@ -184,7 +185,7 @@ defmodule Module.ParallelChecker do
184185
185186
Returns the updated list of warnings from the verification.
186187
"""
187-
@spec verify(cache(), [{module(), Path.t()}]) :: [warning()]
188+
@spec verify(cache(), [{module(), Path.t()}]) :: {[warning()], [error()]}
188189
def verify({checker, table}, runtime_files) do
189190
value = :erlang.get(:elixir_code_diagnostics)
190191
log? = not match?({_, false}, value)

0 commit comments

Comments
 (0)