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

Disallow type and interface declarations in statements with blockless bodies #60183

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

Conversation

Andarist
Copy link
Contributor

fixes #60175

@typescript-bot typescript-bot added the For Backlog Bug PRs that fix a backlog bug label Oct 10, 2024
@jakebailey
Copy link
Member

@typescript-bot test it

@typescript-bot
Copy link
Collaborator

typescript-bot commented Oct 10, 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/60183/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,379 50,379 ~ ~ ~ p=1.000 n=6
Memory used 193,403k (± 0.75%) 193,450k (± 0.79%) ~ 192,712k 196,540k p=0.471 n=6
Parse Time 1.31s (± 0.62%) 1.31s (± 0.39%) ~ 1.31s 1.32s p=0.929 n=6
Bind Time 0.72s 0.72s ~ ~ ~ p=1.000 n=6
Check Time 9.75s (± 0.45%) 9.73s (± 0.26%) ~ 9.69s 9.76s p=1.000 n=6
Emit Time 2.73s (± 0.46%) 2.72s (± 1.34%) ~ 2.66s 2.76s p=0.686 n=6
Total Time 14.51s (± 0.29%) 14.48s (± 0.19%) ~ 14.43s 14.51s p=0.196 n=6
angular-1 - node (v18.15.0, x64)
Errors 33 33 ~ ~ ~ p=1.000 n=6
Symbols 947,886 947,886 ~ ~ ~ p=1.000 n=6
Types 410,840 410,840 ~ ~ ~ p=1.000 n=6
Memory used 1,224,606k (± 0.00%) 1,224,614k (± 0.00%) ~ 1,224,560k 1,224,669k p=0.574 n=6
Parse Time 6.62s (± 0.25%) 6.61s (± 0.85%) ~ 6.56s 6.72s p=0.145 n=6
Bind Time 1.88s (± 0.27%) 1.88s (± 0.58%) ~ 1.86s 1.89s p=0.784 n=6
Check Time 31.82s (± 0.28%) 31.82s (± 0.28%) ~ 31.69s 31.92s p=0.688 n=6
Emit Time 15.20s (± 0.46%) 15.13s (± 0.25%) ~ 15.07s 15.16s p=0.053 n=6
Total Time 55.52s (± 0.24%) 55.45s (± 0.16%) ~ 55.34s 55.58s p=0.298 n=6
mui-docs - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 2,529,697 2,529,697 ~ ~ ~ p=1.000 n=6
Types 916,163 916,163 ~ ~ ~ p=1.000 n=6
Memory used 2,340,983k (± 0.00%) 2,340,948k (± 0.00%) ~ 2,340,874k 2,341,020k p=0.575 n=6
Parse Time 9.41s (± 0.27%) 9.38s (± 0.23%) ~ 9.35s 9.41s p=0.053 n=6
Bind Time 2.17s (± 0.35%) 2.17s (± 0.38%) ~ 2.15s 2.17s p=1.000 n=6
Check Time 76.17s (± 0.36%) 75.63s (± 0.35%) -0.54s (- 0.72%) 75.39s 76.06s p=0.013 n=6
Emit Time 0.28s (± 1.86%) 0.28s (± 2.70%) ~ 0.27s 0.29s p=0.784 n=6
Total Time 88.04s (± 0.34%) 87.45s (± 0.29%) -0.58s (- 0.66%) 87.20s 87.89s p=0.013 n=6
self-build-src - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,258,109 1,258,109 ~ ~ ~ p=1.000 n=6
Types 266,266 266,266 ~ ~ ~ p=1.000 n=6
Memory used 3,026,020k (± 9.72%) 3,146,316k (± 0.02%) ~ 3,145,448k 3,147,140k p=0.378 n=6
Parse Time 6.57s (± 1.41%) 6.61s (± 0.54%) ~ 6.56s 6.66s p=0.470 n=6
Bind Time 2.34s (± 0.94%) 2.33s (± 1.15%) ~ 2.31s 2.38s p=0.468 n=6
Check Time 43.13s (± 0.46%) 43.02s (± 0.43%) ~ 42.75s 43.23s p=0.471 n=6
Emit Time 3.55s (± 1.16%) 3.51s (± 2.50%) ~ 3.35s 3.58s p=0.471 n=6
Total Time 55.61s (± 0.49%) 55.47s (± 0.36%) ~ 55.19s 55.68s p=0.689 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,258,109 1,258,109 ~ ~ ~ p=1.000 n=6
Types 266,266 266,266 ~ ~ ~ p=1.000 n=6
Memory used 2,496,144k (± 0.02%) 2,496,217k (± 0.02%) ~ 2,495,528k 2,497,237k p=0.810 n=6
Parse Time 5.36s (± 0.37%) 5.36s (± 0.87%) ~ 5.28s 5.41s p=0.470 n=6
Bind Time 1.74s (± 0.43%) 1.73s (± 0.47%) ~ 1.72s 1.74s p=0.120 n=6
Check Time 35.87s (± 0.39%) 35.84s (± 0.38%) ~ 35.67s 36.07s p=0.810 n=6
Emit Time 3.05s (± 1.65%) 3.00s (± 1.22%) ~ 2.95s 3.04s p=0.229 n=6
Total Time 46.01s (± 0.32%) 45.94s (± 0.36%) ~ 45.80s 46.25s p=0.378 n=6
self-compiler - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 261,786 261,786 ~ ~ ~ p=1.000 n=6
Types 106,508 106,508 ~ ~ ~ p=1.000 n=6
Memory used 438,730k (± 0.01%) 438,807k (± 0.01%) +77k (+ 0.02%) 438,778k 438,857k p=0.045 n=6
Parse Time 4.39s (± 0.87%) 4.41s (± 0.98%) ~ 4.33s 4.46s p=0.518 n=6
Bind Time 1.63s (± 0.51%) 1.63s (± 1.25%) ~ 1.61s 1.66s p=0.681 n=6
Check Time 23.40s (± 0.48%) 23.42s (± 0.37%) ~ 23.31s 23.53s p=0.748 n=6
Emit Time 1.92s (± 1.36%) 1.93s (± 0.39%) ~ 1.92s 1.94s p=0.319 n=6
Total Time 31.33s (± 0.50%) 31.39s (± 0.43%) ~ 31.24s 31.60s p=0.521 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors 68 68 ~ ~ ~ p=1.000 n=6
Symbols 225,919 225,919 ~ ~ ~ p=1.000 n=6
Types 94,415 94,415 ~ ~ ~ p=1.000 n=6
Memory used 371,071k (± 0.02%) 371,089k (± 0.01%) ~ 371,037k 371,158k p=0.575 n=6
Parse Time 2.88s (± 1.15%) 2.90s (± 1.02%) ~ 2.86s 2.94s p=0.461 n=6
Bind Time 1.58s (± 1.94%) 1.58s (± 0.65%) ~ 1.57s 1.60s p=0.513 n=6
Check Time 16.32s (± 0.34%) 16.34s (± 0.42%) ~ 16.22s 16.41s p=0.423 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 20.78s (± 0.20%) 20.82s (± 0.33%) ~ 20.72s 20.92s p=0.257 n=6
vscode - node (v18.15.0, x64)
Errors 3 3 ~ ~ ~ p=1.000 n=6
Symbols 3,113,894 3,113,894 ~ ~ ~ p=1.000 n=6
Types 1,073,363 1,073,363 ~ ~ ~ p=1.000 n=6
Memory used 3,207,305k (± 0.01%) 3,207,372k (± 0.00%) ~ 3,207,097k 3,207,536k p=0.810 n=6
Parse Time 14.05s (± 0.31%) 14.06s (± 0.62%) ~ 13.92s 14.18s p=0.872 n=6
Bind Time 4.47s (± 2.41%) 4.44s (± 0.37%) ~ 4.43s 4.47s p=0.677 n=6
Check Time 85.56s (± 1.69%) 85.50s (± 1.49%) ~ 84.71s 88.07s p=0.810 n=6
Emit Time 24.13s (± 8.58%) 24.09s (± 9.30%) ~ 22.58s 27.14s p=0.376 n=6
Total Time 128.21s (± 2.46%) 128.10s (± 2.41%) ~ 125.84s 133.41s p=0.521 n=6
webpack - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 285,191 285,191 ~ ~ ~ p=1.000 n=6
Types 115,771 115,771 ~ ~ ~ p=1.000 n=6
Memory used 435,348k (± 0.02%) 435,194k (± 0.02%) -154k (- 0.04%) 435,006k 435,306k p=0.045 n=6
Parse Time 4.05s (± 1.39%) 4.06s (± 1.23%) ~ 3.99s 4.13s p=0.936 n=6
Bind Time 1.73s (± 1.21%) 1.73s (± 0.87%) ~ 1.72s 1.76s p=0.805 n=6
Check Time 18.33s (± 0.55%) 18.51s (± 1.85%) ~ 18.25s 19.17s p=0.471 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 24.11s (± 0.42%) 24.30s (± 1.27%) ~ 24.06s 24.89s p=0.149 n=6
xstate-main - node (v18.15.0, x64)
Errors 3 3 ~ ~ ~ p=1.000 n=6
Symbols 540,222 540,222 ~ ~ ~ p=1.000 n=6
Types 181,145 181,145 ~ ~ ~ p=1.000 n=6
Memory used 483,875k (± 0.02%) 483,879k (± 0.01%) ~ 483,781k 483,957k p=0.810 n=6
Parse Time 4.17s (± 0.68%) 4.16s (± 0.38%) ~ 4.14s 4.18s p=0.413 n=6
Bind Time 1.47s (± 0.86%) 1.47s (± 0.57%) ~ 1.45s 1.47s p=0.356 n=6
Check Time 23.67s (± 0.31%) 23.66s (± 0.40%) ~ 23.53s 23.78s p=1.000 n=6
Emit Time 0.01s (±167.16%) 0.00s (±244.70%) ~ 0.00s 0.01s p=0.527 n=6
Total Time 29.31s (± 0.30%) 29.28s (± 0.30%) ~ 29.18s 29.41s p=0.748 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/60183/merge:

Everything looks good!

Copy link
Member

@jakebailey jakebailey left a comment

Choose a reason for hiding this comment

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

This seems right to me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Backlog Bug PRs that fix a backlog bug
Projects
Status: Needs merge
Development

Successfully merging this pull request may close these issues.

Ambiguous scoping of if statement body
3 participants