Skip to content

fix(60484): Implementing a prim type in a class expression should report error - #60490

Merged
Jake Bailey (jakebailey) merged 2 commits into
microsoft:mainfrom
a-tarasyuk:fix/60484
Nov 20, 2024
Merged

fix(60484): Implementing a prim type in a class expression should report error#60490
Jake Bailey (jakebailey) merged 2 commits into
microsoft:mainfrom
a-tarasyuk:fix/60484

Conversation

@a-tarasyuk

Copy link
Copy Markdown
Contributor

Fixes#60484

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

Copy link
Copy Markdown
Member

TypeScript Bot (@typescript-bot) test it

@typescript-bot

TypeScript Bot (typescript-bot) commented Nov 13, 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

Jake Bailey (@jakebailey) Here are the results of running the user tests with tsc comparing main and refs/pull/60490/merge:

Everything looks good!

@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)
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)
Errors3434~~~p=1.000 n=6
Symbols62,36362,363~~~p=1.000 n=6
Types50,39550,395~~~p=1.000 n=6
Memory used193,036k (± 0.01%)193,712k (± 0.76%)~193,000k196,691kp=0.689 n=6
Parse Time1.31s (± 0.96%)1.31s (± 0.62%)~1.30s1.32sp=0.558 n=6
Bind Time0.72s0.72s~~~p=1.000 n=6
Check Time9.80s (± 0.44%)9.82s (± 0.37%)~9.76s9.87sp=0.375 n=6
Emit Time2.73s (± 0.67%)2.73s (± 0.71%)~2.71s2.76sp=1.000 n=6
Total Time14.56s (± 0.22%)14.58s (± 0.23%)~14.53s14.62sp=0.521 n=6
angular-1 - node (v18.15.0, x64)
Errors3737~~~p=1.000 n=6
Symbols947,936947,936~~~p=1.000 n=6
Types410,955410,955~~~p=1.000 n=6
Memory used1,226,017k (± 0.00%)1,225,994k (± 0.00%)~1,225,948k1,226,055kp=0.229 n=6
Parse Time6.64s (± 0.90%)6.68s (± 0.55%)~6.64s6.73sp=0.261 n=6
Bind Time1.89s (± 0.27%)1.89s (± 0.44%)~1.87s1.89sp=0.923 n=6
Check Time32.08s (± 0.54%)32.09s (± 0.24%)~31.97s32.18sp=0.810 n=6
Emit Time15.25s (± 0.64%)15.18s (± 0.41%)~15.10s15.26sp=0.336 n=6
Total Time55.86s (± 0.27%)55.84s (± 0.14%)~55.75s55.96sp=1.000 n=6
mui-docs - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols2,498,2922,498,292~~~p=1.000 n=6
Types908,904908,904~~~p=1.000 n=6
Memory used2,317,079k (± 0.00%)2,317,077k (± 0.00%)~2,317,033k2,317,097kp=0.873 n=6
Parse Time9.32s (± 0.33%)9.32s (± 0.16%)~9.31s9.34sp=0.453 n=6
Bind Time2.17s (± 0.29%)2.16s (± 0.68%)~2.14s2.18sp=0.345 n=6
Check Time74.69s (± 0.38%)75.02s (± 0.34%)~74.80s75.46sp=0.066 n=6
Emit Time0.29s (± 4.05%)0.28s (± 2.67%)~0.27s0.29sp=0.279 n=6
Total Time86.47s (± 0.32%)86.79s (± 0.30%)~86.56s87.23sp=0.109 n=6
self-build-src - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols1,225,3891,225,389~~~p=1.000 n=6
Types266,556266,555-1 (- 0.00%)~~p=0.001 n=6
Memory used2,415,089k (± 6.13%)2,415,182k (± 6.13%)~2,354,119k2,717,845kp=0.689 n=6
Parse Time5.26s (± 0.89%)5.25s (± 1.34%)~5.18s5.38sp=0.572 n=6
Bind Time1.77s (± 0.86%)1.77s (± 1.40%)~1.73s1.80sp=0.572 n=6
Check Time35.20s (± 0.58%)35.08s (± 0.63%)~34.73s35.31sp=0.298 n=6
Emit Time2.98s (± 0.81%)2.98s (± 1.05%)~2.94s3.02sp=0.873 n=6
Total Time45.23s (± 0.36%)45.09s (± 0.42%)~44.85s45.30sp=0.199 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols1,225,3891,225,389~~~p=1.000 n=6
Types266,556266,555-1 (- 0.00%)~~p=0.001 n=6
Memory used2,786,889k (±14.22%)3,149,153k (± 0.03%)~3,147,856k3,150,021kp=0.173 n=6
Parse Time6.97s (± 1.93%)7.03s (± 0.73%)~6.97s7.12sp=0.810 n=6
Bind Time2.15s (± 1.08%)2.15s (± 0.82%)~2.13s2.17sp=0.747 n=6
Check Time42.82s (± 0.65%)42.85s (± 0.20%)~42.73s42.93sp=1.000 n=6
Emit Time3.50s (± 3.06%)3.55s (± 2.27%)~3.49s3.70sp=0.298 n=6
Total Time55.43s (± 0.84%)55.58s (± 0.23%)~55.38s55.70sp=1.000 n=6
self-compiler - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols262,223262,223~~~p=1.000 n=6
Types106,607106,606-1 (- 0.00%)~~p=0.001 n=6
Memory used439,795k (± 0.01%)439,814k (± 0.02%)~439,726k439,968kp=0.810 n=6
Parse Time3.55s (± 0.40%)3.55s (± 0.83%)~3.52s3.59sp=0.871 n=6
Bind Time1.32s (± 0.83%)1.32s (± 0.96%)~1.31s1.34sp=0.932 n=6
Check Time18.98s (± 0.33%)18.96s (± 0.40%)~18.89s19.09sp=0.628 n=6
Emit Time1.53s (± 1.40%)1.52s (± 1.79%)~1.47s1.55sp=0.624 n=6
Total Time25.38s (± 0.23%)25.35s (± 0.42%)~25.23s25.54sp=0.377 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors7070~~~p=1.000 n=6
Symbols226,062226,062~~~p=1.000 n=6
Types94,48894,488~~~p=1.000 n=6
Memory used371,606k (± 0.01%)371,578k (± 0.01%)~371,549k371,603kp=0.173 n=6
Parse Time3.61s (± 0.57%)3.60s (± 1.30%)~3.56s3.68sp=0.373 n=6
Bind Time1.96s (± 0.82%)1.95s (± 1.73%)~1.92s2.00sp=0.519 n=6
Check Time20.50s (± 0.55%)20.41s (± 0.18%)~20.34s20.45sp=0.126 n=6
Emit Time0.00s (±244.70%)0.00s~~~p=0.405 n=6
Total Time26.07s (± 0.43%)25.96s (± 0.31%)~25.86s26.07sp=0.077 n=6
vscode - node (v18.15.0, x64)
Errors44~~~p=1.000 n=6
Symbols3,144,2903,144,290~~~p=1.000 n=6
Types1,084,1131,084,113~~~p=1.000 n=6
Memory used3,228,274k (± 0.01%)3,228,217k (± 0.01%)~3,227,496k3,228,549kp=0.575 n=6
Parse Time14.05s (± 0.57%)14.03s (± 0.28%)~13.97s14.06sp=0.628 n=6
Bind Time4.53s (± 2.33%)4.60s (± 3.31%)~4.44s4.74sp=0.573 n=6
Check Time85.80s (± 0.42%)86.27s (± 1.66%)~84.71s89.01sp=0.575 n=6
Emit Time23.97s (± 7.21%)24.50s (± 8.80%)~22.75s27.26sp=1.000 n=6
Total Time128.35s (± 1.16%)129.41s (± 2.24%)~127.33s134.70sp=0.689 n=6
webpack - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols288,542288,542~~~p=1.000 n=6
Types117,082117,082~~~p=1.000 n=6
Memory used440,787k (± 0.03%)440,780k (± 0.02%)~440,630k440,915kp=0.936 n=6
Parse Time4.11s (± 1.16%)4.07s (± 0.83%)~4.03s4.13sp=0.295 n=6
Bind Time1.73s (± 1.58%)1.75s (± 0.47%)~1.74s1.76sp=0.133 n=6
Check Time18.91s (± 0.13%)18.85s (± 0.46%)~18.72s18.98sp=0.090 n=6
Emit Time0.00s0.00s (±244.70%)~0.00s0.01sp=0.405 n=6
Total Time24.74s (± 0.12%)24.66s (± 0.37%)~24.54s24.80sp=0.088 n=6
xstate-main - node (v18.15.0, x64)
Errors88~~~p=1.000 n=6
Symbols551,583551,583~~~p=1.000 n=6
Types184,808184,808~~~p=1.000 n=6
Memory used491,944k (± 0.01%)491,908k (± 0.01%)~491,839k491,968kp=0.261 n=6
Parse Time3.43s (± 0.51%)3.41s (± 0.63%)~3.38s3.44sp=0.145 n=6
Bind Time1.18s (± 0.35%)1.18s (± 1.16%)~1.16s1.20sp=0.245 n=6
Check Time19.54s (± 0.29%)19.53s (± 0.31%)~19.43s19.61sp=0.873 n=6
Emit Time0.00s0.00s~~~p=1.000 n=6
Total Time24.15s (± 0.21%)24.12s (± 0.27%)~24.01s24.21sp=0.520 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/60490/merge:

Everything looks good!

Comment threadsrc/compiler/checker.ts
@jakebailey
Jake Bailey (jakebailey) merged commit d85767a into microsoft:mainNov 20, 2024
@microsoftMicrosoft (microsoft) locked as resolved and limited conversation to collaborators Oct 15, 2025
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.

Implementing a prim type in a class expression should report error

5 participants

@a-tarasyuk@jakebailey@typescript-bot@Andarist@sandersn