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

Don't issue implicit any when obtaining the implied type for a binding pattern #60083

Merged
merged 4 commits into from
Oct 1, 2024

Conversation

ahejlsberg
Copy link
Member

@ahejlsberg ahejlsberg commented Sep 27, 2024

Fixes #59936. See my comment here.

@Andarist Borrowed tests from #59975. Thanks!

@jakebailey
Copy link
Member

@typescript-bot test it

@typescript-bot
Copy link
Collaborator

typescript-bot commented Sep 27, 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/60083/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 31 31 ~ ~ ~ p=1.000 n=6
Symbols 62,340 62,340 ~ ~ ~ p=1.000 n=6
Types 50,378 50,378 ~ ~ ~ p=1.000 n=6
Memory used 195,794k (± 0.72%) 195,799k (± 0.72%) ~ 192,949k 196,525k p=0.936 n=6
Parse Time 1.62s (± 0.82%) 1.59s (± 1.23%) -0.02s (- 1.54%) 1.56s 1.61s p=0.021 n=6
Bind Time 0.88s (± 0.93%) 0.86s (± 0.60%) -0.01s (- 1.52%) 0.86s 0.87s p=0.014 n=6
Check Time 11.73s (± 0.78%) 11.74s (± 0.41%) ~ 11.65s 11.78s p=0.688 n=6
Emit Time 3.36s (± 4.46%) 3.34s (± 2.94%) ~ 3.28s 3.54s p=0.936 n=6
Total Time 17.58s (± 0.68%) 17.54s (± 0.35%) ~ 17.49s 17.65s p=0.936 n=6
angular-1 - node (v18.15.0, x64)
Errors 7 7 ~ ~ ~ p=1.000 n=6
Symbols 947,102 947,102 ~ ~ ~ p=1.000 n=6
Types 410,738 410,738 ~ ~ ~ p=1.000 n=6
Memory used 1,224,074k (± 0.00%) 1,224,085k (± 0.00%) ~ 1,224,038k 1,224,164k p=0.810 n=6
Parse Time 6.62s (± 0.85%) 6.64s (± 0.55%) ~ 6.59s 6.68s p=0.416 n=6
Bind Time 1.88s (± 0.22%) 1.88s (± 0.52%) ~ 1.86s 1.89s p=0.753 n=6
Check Time 31.68s (± 0.36%) 31.67s (± 0.29%) ~ 31.52s 31.81s p=0.748 n=6
Emit Time 15.12s (± 0.24%) 15.13s (± 0.57%) ~ 15.02s 15.28s p=1.000 n=6
Total Time 55.30s (± 0.24%) 55.32s (± 0.20%) ~ 55.20s 55.51s p=0.936 n=6
mui-docs - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 2,521,651 2,521,651 ~ ~ ~ p=1.000 n=6
Types 936,037 936,037 ~ ~ ~ p=1.000 n=6
Memory used 2,351,733k (± 0.00%) 2,351,763k (± 0.00%) ~ 2,351,682k 2,351,940k p=1.000 n=6
Parse Time 9.40s (± 0.28%) 9.40s (± 0.31%) ~ 9.35s 9.43s p=0.868 n=6
Bind Time 2.19s (± 0.37%) 2.18s (± 0.63%) ~ 2.17s 2.20s p=0.557 n=6
Check Time 75.83s (± 0.24%) 76.40s (± 1.41%) ~ 75.60s 78.51s p=0.470 n=6
Emit Time 0.28s (± 2.70%) 0.28s (± 2.95%) ~ 0.27s 0.29s p=0.729 n=6
Total Time 87.69s (± 0.20%) 88.25s (± 1.21%) ~ 87.48s 90.33s p=0.575 n=6
self-build-src - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,250,668 1,250,671 +3 (+ 0.00%) ~ ~ p=0.001 n=6
Types 265,081 265,082 +1 (+ 0.00%) ~ ~ p=0.001 n=6
Memory used 2,405,846k (± 0.01%) 2,406,113k (± 0.01%) ~ 2,405,674k 2,406,613k p=0.230 n=6
Parse Time 5.15s (± 0.61%) 5.13s (± 0.86%) ~ 5.08s 5.20s p=0.229 n=6
Bind Time 1.94s (± 0.46%) 1.94s (± 0.90%) ~ 1.91s 1.96s p=0.804 n=6
Check Time 35.38s (± 0.26%) 35.41s (± 0.27%) ~ 35.26s 35.50s p=0.471 n=6
Emit Time 3.09s (± 4.05%) 2.99s (± 0.65%) 🟩-0.10s (- 3.34%) 2.96s 3.01s p=0.020 n=6
Total Time 45.56s (± 0.42%) 45.46s (± 0.16%) ~ 45.33s 45.55s p=0.335 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,250,668 1,250,671 +3 (+ 0.00%) ~ ~ p=0.001 n=6
Types 265,081 265,082 +1 (+ 0.00%) ~ ~ p=0.001 n=6
Memory used 2,480,429k (± 0.01%) 2,480,422k (± 0.01%) ~ 2,480,134k 2,481,028k p=0.936 n=6
Parse Time 5.32s (± 0.75%) 5.33s (± 1.07%) ~ 5.26s 5.40s p=0.689 n=6
Bind Time 1.73s (± 0.67%) 1.72s (± 0.44%) ~ 1.71s 1.73s p=0.150 n=6
Check Time 35.77s (± 0.28%) 35.83s (± 0.22%) ~ 35.70s 35.93s p=0.261 n=6
Emit Time 3.02s (± 1.25%) 3.03s (± 1.43%) ~ 2.97s 3.08s p=0.570 n=6
Total Time 45.84s (± 0.22%) 45.93s (± 0.25%) ~ 45.79s 46.10s p=0.199 n=6
self-compiler - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 260,987 260,990 +3 (+ 0.00%) ~ ~ p=0.001 n=6
Types 106,423 106,424 +1 (+ 0.00%) ~ ~ p=0.001 n=6
Memory used 436,890k (± 0.01%) 436,898k (± 0.01%) ~ 436,828k 436,958k p=0.378 n=6
Parse Time 3.48s (± 1.01%) 3.50s (± 1.15%) ~ 3.43s 3.54s p=0.295 n=6
Bind Time 1.29s (± 1.27%) 1.29s (± 1.96%) ~ 1.26s 1.32s p=0.625 n=6
Check Time 18.80s (± 0.35%) 18.83s (± 0.34%) ~ 18.76s 18.92s p=0.810 n=6
Emit Time 1.47s (± 1.19%) 1.48s (± 1.58%) ~ 1.45s 1.51s p=0.807 n=6
Total Time 25.04s (± 0.24%) 25.09s (± 0.43%) ~ 24.90s 25.21s p=0.296 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors 68 68 ~ ~ ~ p=1.000 n=6
Symbols 225,916 225,916 ~ ~ ~ p=1.000 n=6
Types 94,414 94,414 ~ ~ ~ p=1.000 n=6
Memory used 371,006k (± 0.02%) 370,955k (± 0.01%) ~ 370,879k 371,012k p=0.471 n=6
Parse Time 2.92s (± 1.43%) 2.91s (± 1.18%) ~ 2.85s 2.95s p=0.872 n=6
Bind Time 1.60s (± 1.25%) 1.62s (± 1.06%) ~ 1.59s 1.64s p=0.059 n=6
Check Time 16.35s (± 0.30%) 16.34s (± 0.42%) ~ 16.24s 16.45s p=0.935 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 20.87s (± 0.15%) 20.88s (± 0.31%) ~ 20.80s 20.99s p=0.872 n=6
vscode - node (v18.15.0, x64)
Errors 1 1 ~ ~ ~ p=1.000 n=6
Symbols 3,105,040 3,105,040 ~ ~ ~ p=1.000 n=6
Types 1,070,163 1,070,163 ~ ~ ~ p=1.000 n=6
Memory used 3,199,128k (± 0.01%) 3,199,173k (± 0.01%) ~ 3,198,388k 3,199,423k p=0.689 n=6
Parse Time 14.04s (± 0.91%) 14.05s (± 0.60%) ~ 13.91s 14.16s p=0.573 n=6
Bind Time 4.41s (± 0.25%) 4.41s (± 0.45%) ~ 4.38s 4.43s p=0.865 n=6
Check Time 85.77s (± 3.01%) 85.38s (± 1.05%) ~ 84.53s 87.06s p=0.423 n=6
Emit Time 24.07s (± 9.14%) 23.28s (± 7.59%) ~ 22.31s 26.79s p=0.378 n=6
Total Time 128.29s (± 2.27%) 127.12s (± 2.01%) ~ 125.69s 132.29s p=1.000 n=6
webpack - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 279,071 279,071 ~ ~ ~ p=1.000 n=6
Types 113,893 113,893 ~ ~ ~ p=1.000 n=6
Memory used 428,715k (± 0.05%) 428,776k (± 0.02%) ~ 428,700k 428,866k p=0.575 n=6
Parse Time 4.06s (± 0.67%) 4.06s (± 1.08%) ~ 4.01s 4.14s p=0.467 n=6
Bind Time 1.74s (± 1.49%) 1.73s (± 1.77%) ~ 1.67s 1.75s p=0.934 n=6
Check Time 18.32s (± 2.00%) 18.14s (± 0.57%) ~ 18.02s 18.30s p=0.470 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 24.12s (± 1.53%) 23.93s (± 0.51%) ~ 23.77s 24.08s p=0.229 n=6
xstate-main - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 540,027 540,027 ~ ~ ~ p=1.000 n=6
Types 181,292 181,292 ~ ~ ~ p=1.000 n=6
Memory used 483,598k (± 0.01%) 483,606k (± 0.01%) ~ 483,576k 483,662k p=0.748 n=6
Parse Time 3.35s (± 0.62%) 3.36s (± 1.23%) ~ 3.28s 3.40s p=0.466 n=6
Bind Time 1.18s (± 0.88%) 1.17s (± 0.71%) ~ 1.16s 1.18s p=0.788 n=6
Check Time 18.91s (± 0.25%) 18.90s (± 0.41%) ~ 18.78s 19.00s p=1.000 n=6
Emit Time 0.00s (±244.70%) 0.00s ~ ~ ~ p=0.405 n=6
Total Time 23.45s (± 0.24%) 23.44s (± 0.27%) ~ 23.36s 23.55s p=0.575 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/60083/merge:

Everything looks good!

@jakebailey jakebailey changed the title Fix59936 Don't issue implicit any when obtaining the implied type for a binding pattern Sep 27, 2024
@jakebailey
Copy link
Member

@typescript-bot cherry-pick this to release-5.6

@typescript-bot
Copy link
Collaborator

typescript-bot commented Sep 27, 2024

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

Command Status Results
cherry-pick this to release-5.6 ✅ Started ✅ Results

@typescript-bot
Copy link
Collaborator

Hey, @jakebailey! I've created #60086 for you.

@jakebailey jakebailey merged commit ca18009 into main Oct 1, 2024
32 checks passed
@jakebailey jakebailey deleted the fix59936 branch October 1, 2024 04:38
DanielRosenwasser pushed a commit that referenced this pull request Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Backlog Bug PRs that fix a backlog bug
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Binding element incorrectly reported as having any type in JS with JSDoc starting with 5.6.2
3 participants