CARVIEW |
Select Language
HTTP/2 200
date: Sat, 19 Jul 2025 02:17:18 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/"027d8ab8239520977ed15d2ea1713ecf"
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=g2fvMFDDpMJPNLrqfzv1Sc2geGNKsTEnnCcvo%2BtoSMeTNYXfvaxoMRZNF9J%2FaDd2UdXB4A%2FWwGNCNkd2AQtK%2FUxPMV2Oj0VgD87NIlRe04X2OU4mEmfGhuUGRnNeToaJALZ5hhy2Eyd76Js48%2BG5jjaVV71PMjYl4sUKz3veFT5GgD2Am7ea7cW9dcg%2B2VY2AaH9cHus4q8xDKY7mz70IQy6Vj3JMXDyba7yNMPqtAlnl1lBAgUPV7TQCyshbGjqxLYJcpW5P4tub%2Fm7B%2B12MA%3D%3D--9DnU8X%2BJesE4QUKG--McM%2F8Hh6q6iNwu%2FfDFsQvg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1519231686.1752891436; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 02:17:16 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 02:17:16 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 9EC0:2DAD44:2ACF2D:3BF440:687B002C
Control flow for constructor initialized properties (#37920) · microsoft/TypeScript@3919042 · GitHub
Dismiss banner
Copy file name to clipboardExpand all lines: tests/baselines/reference/checkExportsObjectAssignPrototypeProperty.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/checkIndexConstraintOfJavascriptClassExpression.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/checkJsFiles_noErrorLocation.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/checkSuperCallBeforeThisAccessing9.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/classCanExtendConstructorFunction.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/classExtendingAny.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/constructorFunctions.types
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit 3919042
authored
Control flow for constructor initialized properties (#37920)
* Use CFA to determine types of properties declared by this.xxx assignments
* Accept new baselines
* Also use CFA in constructor functions
* Accept new baselines
* Fix lint error
* Only widen fresh literal types in CFA of assignment to auto-typed
* Auto-typing for declared properties with no type annotation or initializer
* Add optionality if declaration includes '?' modifier
* Always use CFA for properties with no initializer in .js files
* Small fix1 parent a0ebd2c commit 3919042Copy full SHA for 3919042
File tree
Expand file treeCollapse file tree
63 files changed
+327
-248
lines changedFilter options
- src/compiler
- tests/baselines/reference
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
63 files changed
+327
-248
lines changed+3-3Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
649 | 649 |
| |
650 | 650 |
| |
651 | 651 |
| |
652 |
| - | |
| 652 | + | |
653 | 653 |
| |
654 | 654 |
| |
655 | 655 |
| |
| |||
670 | 670 |
| |
671 | 671 |
| |
672 | 672 |
| |
673 |
| - | |
674 |
| - | |
| 673 | + | |
| 674 | + | |
675 | 675 |
| |
676 | 676 |
| |
677 | 677 |
| |
|
+129-56Lines changed: 129 additions & 56 deletions
Large diffs are not rendered by default.
+2-1Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1107 | 1107 |
| |
1108 | 1108 |
| |
1109 | 1109 |
| |
| 1110 | + | |
1110 | 1111 |
| |
1111 | 1112 |
| |
1112 | 1113 |
| |
| |||
1152 | 1153 |
| |
1153 | 1154 |
| |
1154 | 1155 |
| |
1155 |
| - | |
1156 | 1156 |
| |
1157 | 1157 |
| |
1158 | 1158 |
| |
| |||
4157 | 4157 |
| |
4158 | 4158 |
| |
4159 | 4159 |
| |
| 4160 | + | |
4160 | 4161 |
| |
4161 | 4162 |
| |
4162 | 4163 |
| |
|
tests/baselines/reference/checkExportsObjectAssignPrototypeProperty.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/checkExportsObjectAssignPrototypeProperty.types+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
105 | 105 |
| |
106 | 106 |
| |
107 | 107 |
| |
108 |
| - | |
| 108 | + | |
109 | 109 |
| |
110 |
| - | |
| 110 | + | |
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
|
tests/baselines/reference/checkIndexConstraintOfJavascriptClassExpression.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/checkIndexConstraintOfJavascriptClassExpression.types+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
| 26 | + | |
27 | 27 |
| |
28 |
| - | |
| 28 | + | |
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
|
tests/baselines/reference/checkJsFiles_noErrorLocation.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/checkJsFiles_noErrorLocation.types+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
| 28 | + | |
29 | 29 |
| |
30 |
| - | |
| 30 | + | |
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
|
tests/baselines/reference/checkSuperCallBeforeThisAccessing9.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/checkSuperCallBeforeThisAccessing9.types+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
16 | 16 |
| |
17 |
| - | |
| 17 | + | |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
|
tests/baselines/reference/classCanExtendConstructorFunction.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/classCanExtendConstructorFunction.types+4-4Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
91 | 91 |
| |
92 | 92 |
| |
93 | 93 |
| |
94 |
| - | |
| 94 | + | |
95 | 95 |
| |
96 |
| - | |
| 96 | + | |
97 | 97 |
| |
98 | 98 |
| |
99 | 99 |
| |
|
tests/baselines/reference/classExtendingAny.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/classExtendingAny.types+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
70 |
| - | |
| 70 | + | |
71 | 71 |
| |
72 |
| - | |
| 72 | + | |
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
|
tests/baselines/reference/constructorFunctions.types
Copy file name to clipboardExpand all lines: tests/baselines/reference/constructorFunctions.types+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
143 | 143 |
| |
144 | 144 |
| |
145 | 145 |
| |
146 |
| - | |
| 146 | + | |
147 | 147 |
| |
148 |
| - | |
| 148 | + | |
149 | 149 |
| |
150 | 150 |
| |
151 | 151 |
| |
|
You can’t perform that action at this time.
0 commit comments