Collect contravariant-only inference candidates from shorter annotated functions#52609
Conversation
|
@typescript-bot pack this |
|
Heya @weswigham, I've started to run the parallelized Definitely Typed test suite on this PR at 9a63b1f. You can monitor the build here. Update: The results are in! |
|
Heya @weswigham, I've started to run the tarball bundle task on this PR at 9a63b1f. You can monitor the build here. |
|
Heya @weswigham, I've started to run the extended test suite on this PR at 9a63b1f. You can monitor the build here. |
|
Heya @weswigham, I've started to run the perf test suite on this PR at 9a63b1f. You can monitor the build here. Update: The results are in! |
|
Hey @weswigham, I've packed this into an installable tgz. You can install it for testing by referencing it in your and then running There is also a playground for this build and an npm module you can use via |
|
Hey @weswigham, the results of running the DT tests are ready. |
|
@weswigham Here they are:
CompilerComparison Report - main..52609
System
Hosts
Scenarios
TSServerComparison Report - main..52609
System
Hosts
Scenarios
StartupComparison Report - main..52609
System
Hosts
Scenarios
Developer Information: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
weswigham
left a comment
There was a problem hiding this comment.
Weird that doing inference on a non-context-sensitive function helps here, but I guess it makes sense since it's a contravariant inference anyway. Makes me wonder if we shouldn't just always be inferring from annotated parameters in inferential contexts, though that's a lot more work, generally. Tests all look OK, so I guess I'll merge this~
fixes #52580
The third time's a charm