-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Array subtypes inherit special array variance #55880
base: main
Are you sure you want to change the base?
Array subtypes inherit special array variance #55880
Conversation
@typescript-bot pack this |
Heya @weswigham, I've started to run the diff-based user code test suite on this PR at 3707623. You can monitor the build here. Update: The results are in! |
Heya @weswigham, I've started to run the parallelized Definitely Typed test suite on this PR at 3707623. You can monitor the build here. Update: The results are in! |
Heya @weswigham, I've started to run the regular perf test suite on this PR at 3707623. 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 3707623. You can monitor the build here. |
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 |
Wait, |
@weswigham Here are the results of running the user test suite comparing There were infrastructure failures potentially unrelated to your change:
Otherwise... Something interesting changed - please have a look. Details
|
@weswigham Here they are:
CompilerComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
tsserverComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
StartupComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
Developer Information: |
No, it's still exactly that -- without method bivariance, you can't make arrayish things that are covariant, which means types like interface Arrayish1<out T> {
indexOf(arg: T): number;
[n: number]: T;
}
interface Arrayish2<out T> { // <-- error
indexOf: (arg: T) => number;
[n: number]: T;
} |
@typescript-bot test top300 |
Heya @DanielRosenwasser, I've started to run the diff-based top-repos suite on this PR at 3707623. You can monitor the build here. Update: The results are in! |
Hey @weswigham, the results of running the DT tests are ready. |
@DanielRosenwasser Here are the results of running the top-repos suite comparing Everything looks good! |
No description provided.