Skip to content

Commit

Permalink
Make return-spec function properly private.
Browse files Browse the repository at this point in the history
  • Loading branch information
Qqwy committed Jan 23, 2022
1 parent 9bcad27 commit c3c6a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/type_check/spec.ex
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ defmodule TypeCheck.Spec do
@compile {:inline, [{unquote(return_spec_fun_name), unquote(arity + 1)}]}
@dialyzer {:nowarn_function, [{unquote(return_spec_fun_name), unquote(arity + 1)}]}

Kernel.def unquote(return_spec_fun_name)(var!(super_result, nil), unquote_splicing(clean_params)) do
Kernel.defp unquote(return_spec_fun_name)(var!(super_result, nil), unquote_splicing(clean_params)) do
unquote(return_spec_code)
end
end
Expand Down

0 comments on commit c3c6a56

Please sign in to comment.