Poor error message due to Iterable overload in Promise.all #46669
Labels
Domain: Error Messages
The issue relates to error messaging
Needs Proposal
This issue needs a plan that clarifies the finer details of how it could be implemented.
Suggestion
An idea for TypeScript
Found in #46651
Bug Report
Playground Link
Try swapping between
goodPromiseAll
andbadPromiseAll
.Notice that the errors on
goodPromiseAll
areand on
badPromiseAll
there's one bad error:I don't understand why we always use the
Iterable
overload inbadPromiseAll
regardless of the ordering.🕗 Version & Regression Information
4.5, nightly
The text was updated successfully, but these errors were encountered: