We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 version: 0.101.0
I would expect an any type to be refined to the checked type when guarded by a %checks call.
any
%checks
The any type is preserved.
The text was updated successfully, but these errors were encountered:
it works like this tho https://flow.org/try/#0PQKgBAAgZgNg9gdzCYAoVAXAngBwKZgBiAlgM4AWYAvGAN4A+YpCxAtgFxgYBOArgfQC+Abky4CAIWLcAJtTqNYWTj35gho1FF4A7AMYZicHWDIkKACnwZOAQx1YAlJwBGcODDz2wAUj3k8PQBrUjpUMDBuPAxebhNrADpmNlRBdD1jUgwwa05zSkYpWXlaJhYOLj4CEVRiKDALMzJyK2jHRzCwAEhE5NZhMHCInOiEpVFBIA
Sorry, something went wrong.
@goodmind that's not the same thing tho, in your example the pet variable has the type assigned, and it's the type guard which allows any.
pet
This is due to limitation of refinement system. We have to have a literal tag for disjoint union.
No branches or pull requests
Flow version: 0.101.0
Expected behavior
I would expect an
any
type to be refined to the checked type when guarded by a%checks
call.Actual behavior
The
any
type is preserved.https://flow.org/try/#0PQKgBAAgZgNg9gdzCYAoVAXAngBwKZgBiAlgM4AWYAvGAN5ikLEC2AXGBgE4CuBAvgG5MuAgCFinACbU6YWFnZdeYQeijcAdgGMMxOBrBkSFABT4M7Y5QA+YcVICU7AEZw4MPAEMDAUi3k8LQBrUjpUMAiwTjwMbk4DcwA6RhYwAEIqGk1JPChiDTxJIT50LX1SDDBzdm8sGXoUtg4efiFiKDATIzJyMxiHBzCwAEgk+QEwVD4gA
The text was updated successfully, but these errors were encountered: