Type Guards are no longer working correctly all the time #54178
Labels
Possible Improvement
The current behavior isn't wrong, but it's possible to see that it might be better in some cases
Milestone
Bug Report
π Search Terms
Type Guard
π Version & Regression Information
β― Playground Link
A simple example
π» Code
π Actual behavior
The Type Guard didn't change the type, which is unintuitive behavior.
π Expected behavior
The method should act as a type guard and change the type
The text was updated successfully, but these errors were encountered: