4.4 regression: in
operator does not narrow types in generic constraints when destructuring
#45762
Labels
Milestone
Bug Report
π Search Terms
in operator, narrowing, generics, constraints, destructuring
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
Types are not narrowed when using destructuring assignment and the compiler throws error 2339.
π Expected behavior
Types are narrowed when using destructuring assignment.
The text was updated successfully, but these errors were encountered: