Allow users to customize the variance of built-in Array
#52621
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
Bug Report
π Search Terms
Array
covariance hardcoded?,Array
invariance,--noLib
π Version & Regression Information
Tested with 4.9.5
β― Playground Link
https://tsplay.dev/WPzdYN
π» Code
π Actual behavior
The assignment
abs = as
compiles.π Expected behavior
The assignment
abs = as
should not compile, just like the assignment_abs = _as
does not compile.The text was updated successfully, but these errors were encountered: