CARVIEW |
Select Language
HTTP/2 200
date: Sat, 19 Jul 2025 02:03:58 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/"d0273c7a5744c08309ebf152119fda81"
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=hYsWFhq1fUIcdky5o3TfgwGeg5dVYSh8HdmXRgjcQtEXojKCfT63fcvU8v5pNeZJtMQ3JEHj5WQFCu2Gq3INGymyu%2BWNayjuBaaZtgnooytfKZIPgHqMNMZghTqMHr69j9e8aIWgpWK2L%2BmJeBqdzuWNoyAaD7s8aOHYxvjopQuknehkzO6j7VJ67L6B44ZDXHOow%2FFZUyJ8NF3xGSLNAR%2BnoYuu74ZPScbxsoDA3csGeYp17xwWrjJS7iQFe9J2mzaxTMR9JKtgdedSumUcJA%3D%3D--XwtSI0n%2FlaGVZc1C--zThAgIXKRBp4VyPgOn9asA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1875557156.1752890637; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 02:03:57 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 02:03:57 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 845A:79D16:29B4EB:3A6E8C:687AFD0D
Fix issues + Support template literal types as discriminants (#46137) · microsoft/TypeScript@5ec836d · GitHub
Copy file name to clipboardExpand all lines: tests/baselines/reference/templateLiteralTypes3.errors.txt
Copy file name to clipboardExpand all lines: tests/baselines/reference/templateLiteralTypes3.js
Copy file name to clipboardExpand all lines: tests/baselines/reference/templateLiteralTypes3.symbols
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit 5ec836d
authored
File tree
Expand file treeCollapse file tree
6 files changed
+448
-15
lines changedFilter options
- src/compiler
- tests
- baselines/reference
- cases/conformance/types/literal
Expand file treeCollapse file tree
6 files changed
+448
-15
lines changed+30-14Lines changed: 30 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12040 | 12040 |
| |
12041 | 12041 |
| |
12042 | 12042 |
| |
12043 |
| - | |
| 12043 | + | |
12044 | 12044 |
| |
12045 | 12045 |
| |
12046 | 12046 |
| |
| |||
19014 | 19014 |
| |
19015 | 19015 |
| |
19016 | 19016 |
| |
| 19017 | + | |
| 19018 | + | |
| 19019 | + | |
19017 | 19020 |
| |
19018 | 19021 |
| |
19019 | 19022 |
| |
| |||
19053 | 19056 |
| |
19054 | 19057 |
| |
19055 | 19058 |
| |
19056 |
| - | |
| 19059 | + | |
19057 | 19060 |
| |
19058 |
| - | |
19059 |
| - | |
19060 |
| - | |
| 19061 | + | |
| 19062 | + | |
19061 | 19063 |
| |
19062 | 19064 |
| |
19063 | 19065 |
| |
| |||
21428 | 21430 |
| |
21429 | 21431 |
| |
21430 | 21432 |
| |
| 21433 | + | |
| 21434 | + | |
| 21435 | + | |
| 21436 | + | |
| 21437 | + | |
| 21438 | + | |
| 21439 | + | |
| 21440 | + | |
| 21441 | + | |
| 21442 | + | |
| 21443 | + | |
| 21444 | + | |
21431 | 21445 |
| |
21432 | 21446 |
| |
21433 | 21447 |
| |
| |||
22528 | 22542 |
| |
22529 | 22543 |
| |
22530 | 22544 |
| |
22531 |
| - | |
| 22545 | + | |
22532 | 22546 |
| |
22533 | 22547 |
| |
22534 | 22548 |
| |
| |||
23087 | 23101 |
| |
23088 | 23102 |
| |
23089 | 23103 |
| |
23090 |
| - | |
23091 |
| - | |
23092 |
| - | |
| 23104 | + | |
| 23105 | + | |
| 23106 | + | |
| 23107 | + | |
| 23108 | + | |
23093 | 23109 |
| |
23094 |
| - | |
23095 |
| - | |
23096 |
| - | |
| 23110 | + | |
| 23111 | + | |
23097 | 23112 |
| |
23098 |
| - | |
| 23113 | + | |
| 23114 | + | |
23099 | 23115 |
| |
23100 | 23116 |
| |
23101 | 23117 |
| |
| |||
23938 | 23954 |
| |
23939 | 23955 |
| |
23940 | 23956 |
| |
23941 |
| - | |
| 23957 | + | |
23942 | 23958 |
| |
23943 | 23959 |
| |
23944 | 23960 |
| |
|
tests/baselines/reference/templateLiteralTypes3.errors.txt
Copy file name to clipboardExpand all lines: tests/baselines/reference/templateLiteralTypes3.errors.txt+53-1Lines changed: 53 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
| 8 | + | |
| 9 | + | |
8 | 10 |
| |
9 | 11 |
| |
10 |
| - | |
| 12 | + | |
11 | 13 |
| |
12 | 14 |
| |
13 | 15 |
| |
| |||
146 | 148 |
| |
147 | 149 |
| |
148 | 150 |
| |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
149 | 201 |
|
tests/baselines/reference/templateLiteralTypes3.js
Copy file name to clipboardExpand all lines: tests/baselines/reference/templateLiteralTypes3.js+91Lines changed: 91 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
124 | 124 |
| |
125 | 125 |
| |
126 | 126 |
| |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
127 | 173 |
| |
128 | 174 |
| |
129 | 175 |
| |
| |||
177 | 223 |
| |
178 | 224 |
| |
179 | 225 |
| |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
180 | 260 |
| |
181 | 261 |
| |
182 | 262 |
| |
| |||
233 | 313 |
| |
234 | 314 |
| |
235 | 315 |
| |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + |
tests/baselines/reference/templateLiteralTypes3.symbols
Copy file name to clipboardExpand all lines: tests/baselines/reference/templateLiteralTypes3.symbols+111Lines changed: 111 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
405 | 405 |
| |
406 | 406 |
| |
407 | 407 |
| |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + |
You can’t perform that action at this time.
0 commit comments