CARVIEW |
Select Language
HTTP/2 200
date: Sat, 19 Jul 2025 11:44:27 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/microsoft/TypeScript.git
etag: W/"13c64f9df2c1ab6b481ce6f7da925caf"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=Ixe7tKz0MpIepml7iq5NxM6ZeTtGo4iMVyPuYic9MJg40dCXWV%2FOjRLQy%2FVZFc68SE%2FMXpBcEG1PoY6RwljZ2jy7U9wZbpX4wawMkSvHOIAOksg986zkvIaS%2BTryURKwXYwDnpkmoB5CNPijNYP%2BcMFIxpgntmjEUJdbQC7RiNVCW4RJ3h8N%2FBOJNxxzheZ0JrQ2EwAfS29Gv07IcLH07l5EcPUBhRtoUTPhnMqbEzPQV6uxwfakhJoMpsa9SFUyB0hF4Pa5N0gwH5nc2agolw%3D%3D--j%2B7j%2Fk3miIcDYpA%2F--wbnMcicGb7wJdwo3CWDHLA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1127100823.1752925465; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 11:44:25 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 11:44:25 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: C4EC:2BEE38:44E4BB:5668E4:687B8519
Limit type argument inference from binding patterns (#49086) · microsoft/TypeScript@a2b785b · GitHub
Copy file name to clipboard
Copy file name to clipboard
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit a2b785b
authored
Limit type argument inference from binding patterns (#49086)
* WIP
* Don’t widen literals based on bogus contextual type instantiation
* Split tests
* Skip unnecessary inference pass
* Accept test baselines
* Fix stray edit
* Fix type mapper combination
* Revert src/ of 7dc1952
* Make empty binding pattern provide no contextual type
* Add missed baseline1 parent 194a2ae commit a2b785bCopy full SHA for a2b785b
File tree
Expand file treeCollapse file tree
29 files changed
+604
-97
lines changedFilter options
- src/compiler
- tests
- baselines/reference
- cases
- compiler
- conformance/es6/destructuring
Expand file treeCollapse file tree
29 files changed
+604
-97
lines changed+42-30Lines changed: 42 additions & 30 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26519 | 26519 |
| |
26520 | 26520 |
| |
26521 | 26521 |
| |
26522 |
| - | |
| 26522 | + | |
26523 | 26523 |
| |
26524 | 26524 |
| |
26525 | 26525 |
| |
| |||
27053 | 27053 |
| |
27054 | 27054 |
| |
27055 | 27055 |
| |
27056 |
| - | |
| 27056 | + | |
27057 | 27057 |
| |
27058 | 27058 |
| |
27059 |
| - | |
27060 |
| - | |
27061 |
| - | |
| 27059 | + | |
| 27060 | + | |
| 27061 | + | |
27062 | 27062 |
| |
27063 | 27063 |
| |
27064 | 27064 |
| |
27065 | 27065 |
| |
27066 |
| - | |
27067 |
| - | |
27068 |
| - | |
27069 |
| - | |
27070 |
| - | |
27071 |
| - | |
| 27066 | + | |
| 27067 | + | |
| 27068 | + | |
| 27069 | + | |
27072 | 27070 |
| |
27073 | 27071 |
| |
27074 | 27072 |
| |
| |||
29904 | 29902 |
| |
29905 | 29903 |
| |
29906 | 29904 |
| |
29907 |
| - | |
| 29905 | + | |
| 29906 | + | |
29908 | 29907 |
| |
29909 | 29908 |
| |
29910 | 29909 |
| |
29911 |
| - | |
29912 |
| - | |
29913 |
| - | |
29914 | 29910 |
| |
29915 |
| - | |
29916 |
| - | |
29917 |
| - | |
29918 |
| - | |
29919 |
| - | |
29920 |
| - | |
29921 |
| - | |
29922 |
| - | |
29923 |
| - | |
29924 |
| - | |
29925 |
| - | |
29926 |
| - | |
29927 |
| - | |
29928 |
| - | |
29929 |
| - | |
| 29911 | + | |
| 29912 | + | |
| 29913 | + | |
| 29914 | + | |
| 29915 | + | |
| 29916 | + | |
| 29917 | + | |
| 29918 | + | |
| 29919 | + | |
| 29920 | + | |
| 29921 | + | |
| 29922 | + | |
| 29923 | + | |
| 29924 | + | |
| 29925 | + | |
| 29926 | + | |
| 29927 | + | |
| 29928 | + | |
| 29929 | + | |
| 29930 | + | |
| 29931 | + | |
| 29932 | + | |
| 29933 | + | |
| 29934 | + | |
| 29935 | + | |
| 29936 | + | |
| 29937 | + | |
| 29938 | + | |
| 29939 | + | |
| 29940 | + | |
| 29941 | + | |
29930 | 29942 |
| |
29931 | 29943 |
| |
29932 | 29944 |
| |
|
+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5874 | 5874 |
| |
5875 | 5875 |
| |
5876 | 5876 |
| |
5877 |
| - | |
| 5877 | + | |
5878 | 5878 |
| |
5879 | 5879 |
| |
5880 | 5880 |
| |
|
tests/baselines/reference/bindingPatternCannotBeOnlyInferenceSource.errors.txt
Copy file name to clipboard+44Lines changed: 44 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + |
tests/baselines/reference/bindingPatternCannotBeOnlyInferenceSource.js
Copy file name to clipboard+61Lines changed: 61 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + |
You can’t perform that action at this time.
0 commit comments