Overloaded function with at least one generic overload can be assigned to any function with at least the same number of parameters #50050
Labels
Needs Investigation
This issue needs a team member to investigate its status.
Bug Report
π Search Terms
overload, generic, function
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
In the example above I call
f(null)
and cause a runtime error, however typescript doesn't warn me about it.π Expected behavior
c
should not be assignable to(value: unknown) => void
.The text was updated successfully, but these errors were encountered: