Instantiation expressions don't filter signatures with non-matching constraints #51694
Labels
Experimentation Needed
Someone needs to try this out to see what happens
Suggestion
An idea for TypeScript
Milestone
Bug Report
π Search Terms
instantiation expression, overload
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
This instantiation expression errors despite the fact that a matching signature exists.
π Expected behavior
It sounds likely that most people would assume that this should work similarly to how overloads are chosen - but instead an intersection is being created based on all signatures with the same type arguments arity.
originally reported by @herjiict here
The text was updated successfully, but these errors were encountered: