Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed incompatible property error reporting in hasExcessProperties under exactOptionalPropertyTypes #60716

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Andarist
Copy link
Contributor

@Andarist Andarist commented Dec 9, 2024

fixes #60712

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Dec 9, 2024
Comment on lines -23649 to -23650
const targetIsOptional = strictNullChecks && !!(getCheckFlags(targetProp) & CheckFlags.Partial);
const effectiveTarget = addOptionality(getNonMissingTypeOfSymbol(targetProp), /*isProperty*/ false, targetIsOptional);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not particularly sure about this change but tests are unaffected

@jakebailey
Copy link
Member

@typescript-bot test it

@typescript-bot
Copy link
Collaborator

typescript-bot commented Dec 9, 2024

Starting jobs; this comment will be updated as builds start and complete.

Command Status Results
test top400 ✅ Started ✅ Results
user test this ✅ Started ✅ Results
run dt ✅ Started ✅ Results
perf test this faster ✅ Started 👀 Results

@typescript-bot
Copy link
Collaborator

Hey @jakebailey, the results of running the DT tests are ready.

Everything looks the same!

You can check the log here.

@typescript-bot
Copy link
Collaborator

@jakebailey Here are the results of running the user tests with tsc comparing main and refs/pull/60716/merge:

Everything looks good!

@typescript-bot
Copy link
Collaborator

@jakebailey
The results of the perf run you requested are in!

Here they are:

tsc

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
Compiler-Unions - node (v18.15.0, x64)
Errors 34 34 ~ ~ ~ p=1.000 n=6
Symbols 62,363 62,363 ~ ~ ~ p=1.000 n=6
Types 50,395 50,395 ~ ~ ~ p=1.000 n=6
Memory used 193,069k (± 0.07%) 193,629k (± 0.78%) ~ 192,981k 196,699k p=0.471 n=6
Parse Time 1.31s (± 0.84%) 1.31s (± 0.93%) ~ 1.29s 1.32s p=0.677 n=6
Bind Time 0.72s 0.72s ~ ~ ~ p=1.000 n=6
Check Time 9.79s (± 0.38%) 9.78s (± 0.26%) ~ 9.73s 9.80s p=0.687 n=6
Emit Time 2.73s (± 0.60%) 2.74s (± 0.81%) ~ 2.72s 2.77s p=0.806 n=6
Total Time 14.55s (± 0.23%) 14.54s (± 0.24%) ~ 14.50s 14.59s p=0.810 n=6
angular-1 - node (v18.15.0, x64)
Errors 37 37 ~ ~ ~ p=1.000 n=6
Symbols 947,936 947,936 ~ ~ ~ p=1.000 n=6
Types 410,955 410,955 ~ ~ ~ p=1.000 n=6
Memory used 1,225,995k (± 0.01%) 1,226,004k (± 0.01%) ~ 1,225,905k 1,226,145k p=1.000 n=6
Parse Time 8.03s (± 0.83%) 8.08s (± 0.42%) ~ 8.02s 8.12s p=0.228 n=6
Bind Time 2.25s (± 0.61%) 2.26s (± 0.66%) ~ 2.25s 2.29s p=0.615 n=6
Check Time 38.13s (± 0.24%) 38.14s (± 0.59%) ~ 37.84s 38.39s p=0.810 n=6
Emit Time 18.17s (± 1.12%) 18.31s (± 0.66%) ~ 18.14s 18.50s p=0.336 n=6
Total Time 66.58s (± 0.42%) 66.79s (± 0.47%) ~ 66.38s 67.16s p=0.378 n=6
mui-docs - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 2,447,028 2,447,028 ~ ~ ~ p=1.000 n=6
Types 896,160 896,160 ~ ~ ~ p=1.000 n=6
Memory used 2,318,463k (± 0.00%) 2,318,405k (± 0.00%) ~ 2,318,346k 2,318,455k p=0.173 n=6
Parse Time 9.43s (± 0.21%) 9.42s (± 0.21%) ~ 9.39s 9.44s p=0.368 n=6
Bind Time 2.23s (± 0.55%) 2.22s (± 0.64%) ~ 2.20s 2.24s p=0.564 n=6
Check Time 73.34s (± 0.29%) 73.39s (± 0.31%) ~ 73.06s 73.73s p=0.936 n=6
Emit Time 0.29s (± 2.85%) 0.28s (± 1.82%) ~ 0.28s 0.29s p=0.523 n=6
Total Time 85.28s (± 0.25%) 85.31s (± 0.27%) ~ 84.96s 85.63s p=1.000 n=6
self-build-src - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,225,331 1,225,330 -1 (- 0.00%) ~ ~ p=0.001 n=6
Types 266,569 266,569 ~ ~ ~ p=1.000 n=6
Memory used 2,414,635k (± 6.14%) 2,354,400k (± 0.02%) ~ 2,353,573k 2,355,023k p=0.575 n=6
Parse Time 5.23s (± 0.41%) 5.23s (± 0.78%) ~ 5.18s 5.30s p=0.630 n=6
Bind Time 1.78s (± 1.18%) 1.77s (± 1.41%) ~ 1.73s 1.80s p=0.808 n=6
Check Time 35.25s (± 0.73%) 35.21s (± 0.36%) ~ 35.06s 35.34s p=1.000 n=6
Emit Time 2.97s (± 1.24%) 3.01s (± 2.39%) ~ 2.95s 3.15s p=0.172 n=6
Total Time 45.24s (± 0.55%) 45.23s (± 0.36%) ~ 45.03s 45.42s p=1.000 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,225,331 1,225,330 -1 (- 0.00%) ~ ~ p=0.001 n=6
Types 266,569 266,569 ~ ~ ~ p=1.000 n=6
Memory used 2,908,155k (±12.87%) 2,907,939k (±12.86%) ~ 2,423,484k 3,149,896k p=0.936 n=6
Parse Time 6.94s (± 1.56%) 6.93s (± 2.23%) ~ 6.72s 7.09s p=0.936 n=6
Bind Time 2.18s (± 1.43%) 2.15s (± 1.78%) ~ 2.10s 2.21s p=0.196 n=6
Check Time 42.66s (± 0.39%) 42.84s (± 0.22%) +0.18s (+ 0.42%) 42.71s 42.99s p=0.045 n=6
Emit Time 3.48s (± 0.99%) 3.55s (± 2.45%) ~ 3.48s 3.72s p=0.078 n=6
Total Time 55.27s (± 0.47%) 55.50s (± 0.31%) ~ 55.17s 55.66s p=0.173 n=6
self-compiler - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 262,270 262,269 -1 (- 0.00%) ~ ~ p=0.001 n=6
Types 106,628 106,628 ~ ~ ~ p=1.000 n=6
Memory used 439,824k (± 0.02%) 439,882k (± 0.03%) ~ 439,694k 440,076k p=0.575 n=6
Parse Time 2.89s (± 0.40%) 2.89s (± 0.18%) ~ 2.88s 2.89s p=0.542 n=6
Bind Time 1.10s 1.10s ~ ~ ~ p=1.000 n=6
Check Time 15.73s (± 0.32%) 15.78s (± 0.41%) ~ 15.68s 15.85s p=0.228 n=6
Emit Time 1.30s (± 1.73%) 1.32s (± 1.49%) ~ 1.29s 1.34s p=0.514 n=6
Total Time 21.03s (± 0.24%) 21.08s (± 0.30%) ~ 21.01s 21.15s p=0.261 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors 70 70 ~ ~ ~ p=1.000 n=6
Symbols 226,062 226,062 ~ ~ ~ p=1.000 n=6
Types 94,488 94,488 ~ ~ ~ p=1.000 n=6
Memory used 371,585k (± 0.01%) 371,561k (± 0.01%) ~ 371,521k 371,646k p=0.199 n=6
Parse Time 2.90s (± 0.89%) 2.88s (± 1.65%) ~ 2.84s 2.97s p=0.360 n=6
Bind Time 1.59s (± 1.24%) 1.59s (± 1.61%) ~ 1.55s 1.62s p=0.806 n=6
Check Time 16.46s (± 0.31%) 16.50s (± 0.44%) ~ 16.39s 16.58s p=0.295 n=6
Emit Time 0.00s 0.00s (±244.70%) ~ 0.00s 0.01s p=0.405 n=6
Total Time 20.95s (± 0.27%) 20.96s (± 0.53%) ~ 20.84s 21.10s p=1.000 n=6
vscode - node (v18.15.0, x64)
Errors 3 3 ~ ~ ~ p=1.000 n=6
Symbols 3,197,814 3,197,814 ~ ~ ~ p=1.000 n=6
Types 1,099,278 1,099,278 ~ ~ ~ p=1.000 n=6
Memory used 3,271,847k (± 0.01%) 3,271,931k (± 0.01%) ~ 3,271,349k 3,272,427k p=0.810 n=6
Parse Time 14.09s (± 0.71%) 14.22s (± 0.68%) +0.13s (+ 0.95%) 14.13s 14.40s p=0.016 n=6
Bind Time 4.84s (±13.93%) 4.51s (± 0.52%) ~ 4.48s 4.55s p=0.106 n=6
Check Time 87.93s (± 4.22%) 87.93s (± 1.98%) ~ 86.05s 89.99s p=0.936 n=6
Emit Time 27.40s (± 8.50%) 27.96s (± 2.70%) ~ 27.21s 28.72s p=0.810 n=6
Total Time 134.27s (± 1.35%) 134.62s (± 1.30%) ~ 132.09s 137.10s p=1.000 n=6
webpack - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 288,747 288,747 ~ ~ ~ p=1.000 n=6
Types 117,158 117,158 ~ ~ ~ p=1.000 n=6
Memory used 441,037k (± 0.03%) 440,966k (± 0.02%) ~ 440,772k 441,088k p=0.575 n=6
Parse Time 4.06s (± 1.46%) 4.07s (± 0.87%) ~ 4.02s 4.12s p=0.468 n=6
Bind Time 1.75s (± 1.51%) 1.76s (± 0.78%) ~ 1.73s 1.77s p=0.803 n=6
Check Time 18.84s (± 0.26%) 18.83s (± 0.69%) ~ 18.62s 19.03s p=1.000 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 24.66s (± 0.51%) 24.66s (± 0.62%) ~ 24.42s 24.89s p=0.748 n=6
xstate-main - node (v18.15.0, x64)
Errors 5 5 ~ ~ ~ p=1.000 n=6
Symbols 552,233 552,233 ~ ~ ~ p=1.000 n=6
Types 184,971 184,971 ~ ~ ~ p=1.000 n=6
Memory used 492,369k (± 0.01%) 492,340k (± 0.04%) ~ 492,004k 492,631k p=0.689 n=6
Parse Time 3.41s (± 0.60%) 3.43s (± 0.74%) ~ 3.40s 3.47s p=0.292 n=6
Bind Time 1.18s (± 1.73%) 1.18s (± 1.03%) ~ 1.16s 1.19s p=0.871 n=6
Check Time 19.45s (± 0.57%) 19.46s (± 0.67%) ~ 19.37s 19.72s p=0.936 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 24.04s (± 0.49%) 24.06s (± 0.50%) ~ 23.99s 24.29s p=0.687 n=6
System info unknown
Hosts
  • node (v18.15.0, x64)
Scenarios
  • Compiler-Unions - node (v18.15.0, x64)
  • angular-1 - node (v18.15.0, x64)
  • mui-docs - node (v18.15.0, x64)
  • self-build-src - node (v18.15.0, x64)
  • self-build-src-public-api - node (v18.15.0, x64)
  • self-compiler - node (v18.15.0, x64)
  • ts-pre-modules - node (v18.15.0, x64)
  • vscode - node (v18.15.0, x64)
  • webpack - node (v18.15.0, x64)
  • xstate-main - node (v18.15.0, x64)
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

Developer Information:

Download Benchmarks

@typescript-bot
Copy link
Collaborator

@jakebailey Here are the results of running the top 400 repos with tsc comparing main and refs/pull/60716/merge:

Everything looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
Status: Not started
Development

Successfully merging this pull request may close these issues.

[exactOptionalPropertyTypes] Unexpected 'undefined' arises in error message
3 participants