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
Imagine this:
Foo|Bar gimmeEither() { ... }
and this code trying to use it:
if (is Foo x = gimmeEither()) { // We already know x is Foo here } else { // NEW But couldn't the typechecker figure out x has to be Bar here? }
For dual typed unions (which might be often used in cases like Result|Error) this might be useful.
The text was updated successfully, but these errors were encountered:
Is this any different from #74?
Sorry, something went wrong.
Damn, I had forgotten about that one ;) Closing
No branches or pull requests
Imagine this:
and this code trying to use it:
For dual typed unions (which might be often used in cases like Result|Error) this might be useful.
The text was updated successfully, but these errors were encountered: