More complete check in isConstTypeVariable - #53341
Conversation
|
TypeScript Bot (@typescript-bot) test this |
|
Heya Anders Hejlsberg (@ahejlsberg), I've started to run the abridged perf test suite on this PR at 9eb3d5a. You can monitor the build here. Update: The results are in! |
|
Heya Anders Hejlsberg (@ahejlsberg), I've started to run the extended test suite on this PR at 9eb3d5a. You can monitor the build here. |
|
Heya Anders Hejlsberg (@ahejlsberg), I've started to run the diff-based user code test suite on this PR at 9eb3d5a. You can monitor the build here. Update: The results are in! |
|
Heya Anders Hejlsberg (@ahejlsberg), I've started to run the parallelized Definitely Typed test suite on this PR at 9eb3d5a. You can monitor the build here. Update: The results are in! |
|
Heya Anders Hejlsberg (@ahejlsberg), I've started to run the diff-based top-repos suite on this PR at 9eb3d5a. You can monitor the build here. Update: The results are in! |
|
Anders Hejlsberg (@ahejlsberg) Here are the results of running the user test suite comparing Everything looks good! |
|
Anders Hejlsberg (@ahejlsberg) Here they are:Comparison Report - main..53341
System
Hosts
Scenarios
Developer Information: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Anders Hejlsberg (@ahejlsberg) Here are the results of running the top-repos suite comparing Everything looks good! |
|
Hey Anders Hejlsberg (@ahejlsberg), the results of running the DT tests are ready. |
|
Tests and performance all look good. |
|
Anders Hejlsberg (@ahejlsberg) Is this ready to merge now? |
This PR improves the logic introduced in #51865 for determining whether a contextual type implies a
constcontext. With this PR, a contextual type implies aconstcontext when the type isconstmodifier,constcontext,T[K]whereTimplies aconstcontext,A extends B ? X : YwhereXorYimply aconstcontext, or...TwhereTimplies a const context.Fixes #53307.