Skip to content

Commit a59fe07

Browse files
authored
Move type warnings (#10324)
No longer needs to compile modules to test type warnings. Reduces type tests execution time from 1.0s to 0.6s.
1 parent 0c3aebb commit a59fe07

File tree

4 files changed

+441
-543
lines changed

4 files changed

+441
-543
lines changed

lib/elixir/lib/module/types.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ defmodule Module.Types do
216216
## ERROR TO WARNING
217217

218218
# Collect relevant information from context and traces to report error
219-
defp error_to_warning(:unable_unify, {left, right, stack}, context) do
219+
def error_to_warning(:unable_unify, {left, right, stack}, context) do
220220
{fun, arity} = context.function
221221
line = get_meta(stack.last_expr)[:line]
222222
location = {context.file, line, {context.module, fun, arity}}

0 commit comments

Comments
 (0)