-
Notifications
You must be signed in to change notification settings - Fork 47.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flow upgrade to 0.182 #25419
Flow upgrade to 0.182 #25419
Conversation
[ghstack-poisoned]
ghstack-source-id: 58e651c26e8b5f878bf2d6a830d3929b5eaad928 Pull Request resolved: facebook#25419
type Check<_X, Y: _X, X: Y = _X> = null; | ||
// eslint-disable-next-line no-unused-expressions | ||
(null: Check<ExportsType, FeatureFlagsType>); | ||
// Flow magic to verify the exports of this file match the original version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you verified this still does what it's supposed to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed one export type and it showed an error.
The idea is that A can be casted into B and B can be casted into A, which I think implies that A = B.
[ghstack-poisoned]
ghstack-source-id: b9bb8c1560e8ac6baf424deea2015c00629fb353 Pull Request resolved: #25419
ghstack-source-id: b9bb8c1560e8ac6baf424deea2015c00629fb353 Pull Request resolved: #25419
Stack from ghstack (oldest at bottom):