Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow nullability flow typing even in presence of pattern match (#18206)
Nullability flow typing is conservatively disabled for mutable variables to which a write occurs nested inside a Tree other than some known ones, such as If and WhileDo. This is to prevent flow-sensitive reasoning for variables that are captured and written to in a closure. Pattern matches do not create a closure. This change enables nullability flow typing even for mutable variables that are written to inside a pattern match.
- Loading branch information