You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Posting here, cause this caused a production incident at our company. For the most part we're "fine" with our usage of flow, but this is one of the more serious bugs
Flow version:
0.220.1
Expected behavior
Incorrect switch case statements should throw an error
Thanks for the report. For now, if using the disjoint object union pattern, stick to using literal types 'foo' directly rather than using typeof X.Foo, both when defining the type and when refining it (e.g. in a switch).
Posting here, cause this caused a production incident at our company. For the most part we're "fine" with our usage of flow, but this is one of the more serious bugs
Flow version:
0.220.1
Expected behavior
Incorrect switch case statements should throw an error
Actual behavior
Switch case statements are allowed to do anything
Specifically see this part:
Note the usage of "random_access"
The text was updated successfully, but these errors were encountered: