Skip to content

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

Merged
Ryan Cavanaugh (RyanCavanaugh) merged 1 commit into
microsoft:mainfrom
Andarist:disallow-type-interface-inblockless-statements
Oct 18, 2024
Merged

Disallow type and interface declarations in statements with blockless bodies#60183
Ryan Cavanaugh (RyanCavanaugh) merged 1 commit into
microsoft:mainfrom
Andarist:disallow-type-interface-inblockless-statements

Conversation

@Andarist

Copy link
Copy Markdown
Contributor

fixes#60175

@typescript-botTypeScript Bot (typescript-bot) added the For Backlog Bug PRs that fix a backlog bug label Oct 10, 2024
@jakebailey

Copy link
Copy Markdown
Member

TypeScript Bot (@typescript-bot) test it

@typescript-bot

TypeScript Bot (typescript-bot) commented Oct 10, 2024

Copy link
Copy Markdown
Contributor

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

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

@typescript-bot

Copy link
Copy Markdown
Contributor

Hey Jake Bailey (@jakebailey), the results of running the DT tests are ready.

Everything looks the same!

You can check the log here.

@typescript-bot

Copy link
Copy Markdown
Contributor

Jake Bailey (@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
Copy Markdown
Contributor

Jake Bailey (@jakebailey)
The results of the perf run you requested are in!

Here they are:

tsc

Comparison Report - baseline..pr
MetricbaselineprDeltaBestWorstp-value
Compiler-Unions - node (v18.15.0, x64)
Errors3131~~~p=1.000 n=6
Symbols62,34062,340~~~p=1.000 n=6
Types50,37950,379~~~p=1.000 n=6
Memory used193,403k (± 0.75%)193,450k (± 0.79%)~192,712k196,540kp=0.471 n=6
Parse Time1.31s (± 0.62%)1.31s (± 0.39%)~1.31s1.32sp=0.929 n=6
Bind Time0.72s0.72s~~~p=1.000 n=6
Check Time9.75s (± 0.45%)9.73s (± 0.26%)~9.69s9.76sp=1.000 n=6
Emit Time2.73s (± 0.46%)2.72s (± 1.34%)~2.66s2.76sp=0.686 n=6
Total Time14.51s (± 0.29%)14.48s (± 0.19%)~14.43s14.51sp=0.196 n=6
angular-1 - node (v18.15.0, x64)
Errors3333~~~p=1.000 n=6
Symbols947,886947,886~~~p=1.000 n=6
Types410,840410,840~~~p=1.000 n=6
Memory used1,224,606k (± 0.00%)1,224,614k (± 0.00%)~1,224,560k1,224,669kp=0.574 n=6
Parse Time6.62s (± 0.25%)6.61s (± 0.85%)~6.56s6.72sp=0.145 n=6
Bind Time1.88s (± 0.27%)1.88s (± 0.58%)~1.86s1.89sp=0.784 n=6
Check Time31.82s (± 0.28%)31.82s (± 0.28%)~31.69s31.92sp=0.688 n=6
Emit Time15.20s (± 0.46%)15.13s (± 0.25%)~15.07s15.16sp=0.053 n=6
Total Time55.52s (± 0.24%)55.45s (± 0.16%)~55.34s55.58sp=0.298 n=6
mui-docs - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols2,529,6972,529,697~~~p=1.000 n=6
Types916,163916,163~~~p=1.000 n=6
Memory used2,340,983k (± 0.00%)2,340,948k (± 0.00%)~2,340,874k2,341,020kp=0.575 n=6
Parse Time9.41s (± 0.27%)9.38s (± 0.23%)~9.35s9.41sp=0.053 n=6
Bind Time2.17s (± 0.35%)2.17s (± 0.38%)~2.15s2.17sp=1.000 n=6
Check Time76.17s (± 0.36%)75.63s (± 0.35%)-0.54s (- 0.72%)75.39s76.06sp=0.013 n=6
Emit Time0.28s (± 1.86%)0.28s (± 2.70%)~0.27s0.29sp=0.784 n=6
Total Time88.04s (± 0.34%)87.45s (± 0.29%)-0.58s (- 0.66%)87.20s87.89sp=0.013 n=6
self-build-src - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols1,258,1091,258,109~~~p=1.000 n=6
Types266,266266,266~~~p=1.000 n=6
Memory used3,026,020k (± 9.72%)3,146,316k (± 0.02%)~3,145,448k3,147,140kp=0.378 n=6
Parse Time6.57s (± 1.41%)6.61s (± 0.54%)~6.56s6.66sp=0.470 n=6
Bind Time2.34s (± 0.94%)2.33s (± 1.15%)~2.31s2.38sp=0.468 n=6
Check Time43.13s (± 0.46%)43.02s (± 0.43%)~42.75s43.23sp=0.471 n=6
Emit Time3.55s (± 1.16%)3.51s (± 2.50%)~3.35s3.58sp=0.471 n=6
Total Time55.61s (± 0.49%)55.47s (± 0.36%)~55.19s55.68sp=0.689 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols1,258,1091,258,109~~~p=1.000 n=6
Types266,266266,266~~~p=1.000 n=6
Memory used2,496,144k (± 0.02%)2,496,217k (± 0.02%)~2,495,528k2,497,237kp=0.810 n=6
Parse Time5.36s (± 0.37%)5.36s (± 0.87%)~5.28s5.41sp=0.470 n=6
Bind Time1.74s (± 0.43%)1.73s (± 0.47%)~1.72s1.74sp=0.120 n=6
Check Time35.87s (± 0.39%)35.84s (± 0.38%)~35.67s36.07sp=0.810 n=6
Emit Time3.05s (± 1.65%)3.00s (± 1.22%)~2.95s3.04sp=0.229 n=6
Total Time46.01s (± 0.32%)45.94s (± 0.36%)~45.80s46.25sp=0.378 n=6
self-compiler - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols261,786261,786~~~p=1.000 n=6
Types106,508106,508~~~p=1.000 n=6
Memory used438,730k (± 0.01%)438,807k (± 0.01%)+77k (+ 0.02%)438,778k438,857kp=0.045 n=6
Parse Time4.39s (± 0.87%)4.41s (± 0.98%)~4.33s4.46sp=0.518 n=6
Bind Time1.63s (± 0.51%)1.63s (± 1.25%)~1.61s1.66sp=0.681 n=6
Check Time23.40s (± 0.48%)23.42s (± 0.37%)~23.31s23.53sp=0.748 n=6
Emit Time1.92s (± 1.36%)1.93s (± 0.39%)~1.92s1.94sp=0.319 n=6
Total Time31.33s (± 0.50%)31.39s (± 0.43%)~31.24s31.60sp=0.521 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors6868~~~p=1.000 n=6
Symbols225,919225,919~~~p=1.000 n=6
Types94,41594,415~~~p=1.000 n=6
Memory used371,071k (± 0.02%)371,089k (± 0.01%)~371,037k371,158kp=0.575 n=6
Parse Time2.88s (± 1.15%)2.90s (± 1.02%)~2.86s2.94sp=0.461 n=6
Bind Time1.58s (± 1.94%)1.58s (± 0.65%)~1.57s1.60sp=0.513 n=6
Check Time16.32s (± 0.34%)16.34s (± 0.42%)~16.22s16.41sp=0.423 n=6
Emit Time0.00s0.00s~~~p=1.000 n=6
Total Time20.78s (± 0.20%)20.82s (± 0.33%)~20.72s20.92sp=0.257 n=6
vscode - node (v18.15.0, x64)
Errors33~~~p=1.000 n=6
Symbols3,113,8943,113,894~~~p=1.000 n=6
Types1,073,3631,073,363~~~p=1.000 n=6
Memory used3,207,305k (± 0.01%)3,207,372k (± 0.00%)~3,207,097k3,207,536kp=0.810 n=6
Parse Time14.05s (± 0.31%)14.06s (± 0.62%)~13.92s14.18sp=0.872 n=6
Bind Time4.47s (± 2.41%)4.44s (± 0.37%)~4.43s4.47sp=0.677 n=6
Check Time85.56s (± 1.69%)85.50s (± 1.49%)~84.71s88.07sp=0.810 n=6
Emit Time24.13s (± 8.58%)24.09s (± 9.30%)~22.58s27.14sp=0.376 n=6
Total Time128.21s (± 2.46%)128.10s (± 2.41%)~125.84s133.41sp=0.521 n=6
webpack - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols285,191285,191~~~p=1.000 n=6
Types115,771115,771~~~p=1.000 n=6
Memory used435,348k (± 0.02%)435,194k (± 0.02%)-154k (- 0.04%)435,006k435,306kp=0.045 n=6
Parse Time4.05s (± 1.39%)4.06s (± 1.23%)~3.99s4.13sp=0.936 n=6
Bind Time1.73s (± 1.21%)1.73s (± 0.87%)~1.72s1.76sp=0.805 n=6
Check Time18.33s (± 0.55%)18.51s (± 1.85%)~18.25s19.17sp=0.471 n=6
Emit Time0.00s0.00s~~~p=1.000 n=6
Total Time24.11s (± 0.42%)24.30s (± 1.27%)~24.06s24.89sp=0.149 n=6
xstate-main - node (v18.15.0, x64)
Errors33~~~p=1.000 n=6
Symbols540,222540,222~~~p=1.000 n=6
Types181,145181,145~~~p=1.000 n=6
Memory used483,875k (± 0.02%)483,879k (± 0.01%)~483,781k483,957kp=0.810 n=6
Parse Time4.17s (± 0.68%)4.16s (± 0.38%)~4.14s4.18sp=0.413 n=6
Bind Time1.47s (± 0.86%)1.47s (± 0.57%)~1.45s1.47sp=0.356 n=6
Check Time23.67s (± 0.31%)23.66s (± 0.40%)~23.53s23.78sp=1.000 n=6
Emit Time0.01s (±167.16%)0.00s (±244.70%)~0.00s0.01sp=0.527 n=6
Total Time29.31s (± 0.30%)29.28s (± 0.30%)~29.18s29.41sp=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)
BenchmarkNameIterations
Currentpr6
Baselinebaseline6

Developer Information:

Download Benchmarks

@typescript-bot

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey) Here are the results of running the top 400 repos with tsc comparing main and refs/pull/60183/merge:

Everything looks good!

@jakebaileyJake Bailey (jakebailey) left a comment

Copy link
Copy Markdown
Member

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?

@acutmore

Copy link
Copy Markdown
Contributor

thanks Mateusz Burzyński (@Andarist) !

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Backlog BugPRs that fix a backlog bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ambiguous scoping of if statement body

6 participants

@Andarist@jakebailey@typescript-bot@acutmore@sandersn@RyanCavanaugh