Skip to content

Correctly resolve declared type for late bound property symbols of function expressions #55357

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

Merged

Conversation

Andarist
Copy link
Contributor

noticed this while rechecking #29821 (I'm not marking this PR as closing that issue since what was reported there was fixed already fixed by #54726)

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Aug 14, 2023
@typescript-bot
Copy link
Collaborator

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

@weswigham
Copy link
Member

@typescript-bot test this
@typescript-bot run dt
@typescript-bot test top100
@typescript-bot perf test this

@typescript-bot
Copy link
Collaborator

typescript-bot commented Sep 13, 2023

Heya @weswigham, I've started to run the diff-based top-repos suite on this PR at 0a83e9e. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Sep 13, 2023

Heya @weswigham, I've started to run the parallelized Definitely Typed test suite on this PR at 0a83e9e. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Sep 13, 2023

Heya @weswigham, I've started to run the regular perf test suite on this PR at 0a83e9e. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

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

Here they are:

Compiler

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
Angular - node (v16.17.1, x64)
Memory used 300,269k (± 0.00%) 300,282k (± 0.01%) ~ 300,265k 300,314k p=0.149 n=6
Parse Time 3.01s (± 0.17%) 3.01s (± 0.14%) ~ 3.00s 3.01s p=0.595 n=6
Bind Time 0.93s (± 0.55%) 0.93s (± 0.44%) ~ 0.93s 0.94s p=0.595 n=6
Check Time 9.31s (± 0.36%) 9.34s (± 0.28%) ~ 9.30s 9.38s p=0.147 n=6
Emit Time 7.64s (± 0.23%) 7.64s (± 0.30%) ~ 7.62s 7.68s p=1.000 n=6
Total Time 20.90s (± 0.23%) 20.92s (± 0.18%) ~ 20.86s 20.97s p=0.421 n=6
Compiler-Unions - node (v16.17.1, x64)
Memory used 193,912k (± 0.03%) 193,974k (± 0.01%) ~ 193,938k 193,992k p=0.092 n=6
Parse Time 1.58s (± 0.26%) 1.58s (± 0.52%) ~ 1.58s 1.60s p=0.218 n=6
Bind Time 0.80s (± 0.65%) 0.80s (± 0.51%) ~ 0.79s 0.80s p=0.595 n=6
Check Time 9.95s (± 0.37%) 9.93s (± 0.45%) ~ 9.87s 10.00s p=0.517 n=6
Emit Time 2.74s (± 0.30%) 2.73s (± 0.30%) -0.01s (- 0.36%) 2.73s 2.75s p=0.031 n=6
Total Time 15.06s (± 0.24%) 15.04s (± 0.28%) ~ 14.98s 15.10s p=0.517 n=6
Monaco - node (v16.17.1, x64)
Memory used 347,195k (± 0.00%) 347,196k (± 0.01%) ~ 347,157k 347,222k p=0.375 n=6
Parse Time 2.68s (± 0.19%) 2.69s (± 0.43%) ~ 2.68s 2.71s p=0.191 n=6
Bind Time 0.99s (± 0.64%) 0.99s (± 0.00%) ~ 0.99s 0.99s p=1.000 n=6
Check Time 7.92s (± 0.30%) 7.93s (± 0.22%) ~ 7.90s 7.95s p=0.686 n=6
Emit Time 4.26s (± 0.35%) 4.27s (± 0.36%) ~ 4.24s 4.28s p=0.216 n=6
Total Time 15.85s (± 0.14%) 15.88s (± 0.12%) ~ 15.86s 15.91s p=0.107 n=6
TFS - node (v16.17.1, x64)
Memory used 301,177k (± 0.00%) 301,180k (± 0.00%) ~ 301,160k 301,190k p=0.335 n=6
Parse Time 2.17s (± 0.56%) 2.17s (± 0.56%) ~ 2.16s 2.19s p=1.000 n=6
Bind Time 1.11s (± 0.46%) 1.11s (± 0.46%) ~ 1.11s 1.12s p=1.000 n=6
Check Time 7.22s (± 0.27%) 7.24s (± 0.20%) ~ 7.22s 7.26s p=0.168 n=6
Emit Time 3.98s (± 0.37%) 3.98s (± 0.38%) ~ 3.97s 4.01s p=0.511 n=6
Total Time 14.49s (± 0.15%) 14.51s (± 0.13%) ~ 14.49s 14.53s p=0.088 n=6
material-ui - node (v16.17.1, x64)
Memory used 479,544k (± 0.00%) 479,545k (± 0.00%) ~ 479,529k 479,573k p=0.810 n=6
Parse Time 3.15s (± 0.13%) 3.15s (± 0.35%) ~ 3.14s 3.17s p=1.000 n=6
Bind Time 0.91s (± 0.00%) 0.91s (± 0.00%) ~ 0.91s 0.91s p=1.000 n=6
Check Time 17.92s (± 0.40%) 17.86s (± 0.39%) ~ 17.77s 17.95s p=0.173 n=6
Emit Time 0.00s (± 0.00%) 0.00s (± 0.00%) ~ 0.00s 0.00s p=1.000 n=6
Total Time 21.98s (± 0.32%) 21.92s (± 0.36%) ~ 21.82s 22.01s p=0.230 n=6
xstate - node (v16.17.1, x64)
Memory used 542,925k (± 0.02%) 542,855k (± 0.01%) ~ 542,793k 542,961k p=0.228 n=6
Parse Time 3.70s (± 0.14%) 3.68s (± 0.33%) ~ 3.67s 3.70s p=0.051 n=6
Bind Time 1.43s (± 3.26%) 1.40s (± 4.31%) ~ 1.34s 1.45s p=0.137 n=6
Check Time 3.21s (± 2.20%) 3.26s (± 2.71%) ~ 3.17s 3.35s p=0.416 n=6
Emit Time 0.08s (± 6.19%) 0.08s (± 9.79%) ~ 0.08s 0.10s p=0.752 n=6
Total Time 8.42s (± 0.26%) 8.43s (± 0.48%) ~ 8.37s 8.48s p=0.871 n=6
System info unknown
Hosts
  • node (v16.17.1, x64)
Scenarios
  • Angular - node (v16.17.1, x64)
  • Compiler-Unions - node (v16.17.1, x64)
  • Monaco - node (v16.17.1, x64)
  • TFS - node (v16.17.1, x64)
  • material-ui - node (v16.17.1, x64)
  • xstate - node (v16.17.1, x64)
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

tsserver

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
Compiler-UnionsTSServer - node (v16.17.1, x64)
Req 1 - updateOpen 2,489ms (± 0.06%) 2,489ms (± 0.08%) ~ 2,487ms 2,492ms p=0.805 n=6
Req 2 - geterr 5,959ms (± 0.29%) 5,953ms (± 0.33%) ~ 5,926ms 5,979ms p=0.575 n=6
Req 3 - references 343ms (± 0.43%) 343ms (± 0.24%) ~ 341ms 343ms p=0.867 n=6
Req 4 - navto 275ms (± 0.15%) 276ms (± 0.77%) ~ 274ms 280ms p=0.924 n=6
Req 5 - completionInfo count 1,356 (± 0.00%) 1,356 (± 0.00%) ~ 1,356 1,356 p=1.000 n=6
Req 5 - completionInfo 83ms (± 8.15%) 85ms (± 8.41%) ~ 76ms 94ms p=0.517 n=6
CompilerTSServer - node (v16.17.1, x64)
Req 1 - updateOpen 2,623ms (± 0.45%) 2,623ms (± 0.61%) ~ 2,604ms 2,643ms p=0.809 n=6
Req 2 - geterr 4,778ms (± 0.14%) 4,770ms (± 0.28%) ~ 4,749ms 4,785ms p=0.199 n=6
Req 3 - references 350ms (± 0.15%) 351ms (± 0.28%) ~ 350ms 352ms p=0.417 n=6
Req 4 - navto 269ms (± 0.28%) 269ms (± 0.19%) ~ 268ms 269ms p=0.784 n=6
Req 5 - completionInfo count 1,518 (± 0.00%) 1,518 (± 0.00%) ~ 1,518 1,518 p=1.000 n=6
Req 5 - completionInfo 79ms (± 0.66%) 79ms (± 0.00%) ~ 79ms 79ms p=0.174 n=6
xstateTSServer - node (v16.17.1, x64)
Req 1 - updateOpen 2,708ms (± 0.21%) 2,706ms (± 0.23%) ~ 2,697ms 2,713ms p=0.468 n=6
Req 2 - geterr 1,963ms (± 1.60%) 1,983ms (± 0.66%) ~ 1,967ms 2,007ms p=0.109 n=6
Req 3 - references 140ms (± 0.98%) 136ms (± 6.81%) ~ 118ms 142ms p=0.802 n=6
Req 4 - navto 362ms (± 0.94%) 359ms (± 0.70%) ~ 357ms 364ms p=0.288 n=6
Req 5 - completionInfo count 2,071 (± 0.00%) 2,071 (± 0.00%) ~ 2,071 2,071 p=1.000 n=6
Req 5 - completionInfo 328ms (± 1.29%) 327ms (± 1.51%) ~ 317ms 330ms p=0.511 n=6
System info unknown
Hosts
  • node (v16.17.1, x64)
Scenarios
  • CompilerTSServer - node (v16.17.1, x64)
  • Compiler-UnionsTSServer - node (v16.17.1, x64)
  • xstateTSServer - node (v16.17.1, x64)
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

Startup

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
tsc-startup - node (v16.17.1, x64)
Execution time 156.55ms (± 0.22%) 156.60ms (± 0.17%) ~ 154.47ms 159.21ms p=0.378 n=600
tsserver-startup - node (v16.17.1, x64)
Execution time 231.00ms (± 0.14%) 231.64ms (± 0.14%) +0.64ms (+ 0.28%) 230.18ms 238.21ms p=0.000 n=600
tsserverlibrary-startup - node (v16.17.1, x64)
Execution time 235.56ms (± 0.14%) 235.96ms (± 0.13%) +0.40ms (+ 0.17%) 234.60ms 239.78ms p=0.000 n=600
typescript-startup - node (v16.17.1, x64)
Execution time 235.73ms (± 0.13%) 235.54ms (± 0.15%) -0.19ms (- 0.08%) 234.31ms 241.68ms p=0.000 n=600
System info unknown
Hosts
  • node (v16.17.1, x64)
Scenarios
  • tsc-startup - node (v16.17.1, x64)
  • tsserver-startup - node (v16.17.1, x64)
  • tsserverlibrary-startup - node (v16.17.1, x64)
  • typescript-startup - node (v16.17.1, x64)
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

Developer Information:

Download Benchmarks

@typescript-bot
Copy link
Collaborator

@weswigham Here are the results of running the top-repos suite comparing main and refs/pull/55357/merge:

Everything looks good!

@typescript-bot
Copy link
Collaborator

Hey @weswigham, the results of running the DT tests are ready.
Everything looks the same!
You can check the log here.

@sandersn sandersn merged commit f834133 into microsoft:main Nov 30, 2023
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
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants