Skip to content
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

Default value is not validated when deconstruction is used #8972

Open
taavisildeberg opened this issue Dec 20, 2022 · 2 comments
Open

Default value is not validated when deconstruction is used #8972

taavisildeberg opened this issue Dec 20, 2022 · 2 comments
Labels
bug Typing: soundness No false negatives (type checker claims that there is no error in the incorrect program)

Comments

@gkz
Copy link
Member

gkz commented Dec 21, 2022

Thanks for the report

@SamChou19815
Copy link
Contributor

This issue is caused by Flow's existing unsoundness wrt literals, where they exist in a superposition state of being a literal and being a more general type, which causes bug like this. We might be able to fix that next year.

@SamChou19815 SamChou19815 added Typing: soundness No false negatives (type checker claims that there is no error in the incorrect program) and removed needs triage labels Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Typing: soundness No false negatives (type checker claims that there is no error in the incorrect program)
Projects
None yet
Development

No branches or pull requests

3 participants