We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22a51d4 commit 2becbfeCopy full SHA for 2becbfe
lib/elixir/lib/module/types/descr.ex
@@ -1116,6 +1116,7 @@ defmodule Module.Types.Descr do
1116
{:badarg, domain_to_flat_args(domain, arity)}
1117
1118
not subtype?(args_domain, domain) ->
1119
+ # TODO: This compatibility check is not enough
1120
if static? or not compatible?(fun, fun(arguments, term())) do
1121
1122
else
@@ -1126,6 +1127,7 @@ defmodule Module.Types.Descr do
1126
1127
{:ok, fun_apply_static(arguments, static_arrows, false)}
1128
1129
static_arrows == [] ->
1130
+ # TODO: We need to validate this within the theory
1131
{:ok, dynamic(fun_apply_static(arguments, dynamic_arrows, false))}
1132
1133
true ->
0 commit comments