GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||
GeezerVison is showing github.com — Revert binding pattern inference changes, but only for tuples by andrewbranch · Pull Request #46009 · microsoft/TypeScript Conversation
Member
Partial revert of #45719—we now let an array binding pattern turn inference of an array into a tuple, which is really nice. I still think the behavior we were seeing for object binding patterns was undesirable, and #45846 supports that hypothesis since all the related errors were due to a tuple turning into an array.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Andrew Branch (andrewbranch)
requested a review
from Anders Hejlsberg (ahejlsberg)
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
Heya Andrew Branch (@andrewbranch), I've started to run the inline community code test suite on this PR at c3bcc4c. You can monitor the build here. Update: The results are in! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Andrew Branch (@andrewbranch) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
We realized that declare function f<T>(): T; const [a, b, c] = f(); should really error, and this PR makes it legal ( |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.