const
type parameters don't work with mutable array constraints
#51931
Labels
Milestone
const
type parameters don't work with mutable array constraints
#51931
Bug Report
I'm not sure if this is intended behavior. If this is not a bug, I'd suggest supporting this as a feature.
π Search Terms
const, args, generic args, extends
π Version & Regression Information
v5.0.0
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
The return type is
any[]
π Expected behavior
The return type should be
["a", false]
The text was updated successfully, but these errors were encountered: