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

Fix false positive in maybe expression #1531

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

MarkoMin
Copy link
Contributor

Description

Here is just the test case that confirms it. Hope I'd manage to get some time to write a solution.

Fixes #1527

@MarkoMin
Copy link
Contributor Author

Just discovered that not only else variables are false positives, but variables in maybe body are false negatives. I've updated an existing test to cover that.

@MarkoMin
Copy link
Contributor Author

MarkoMin commented Sep 13, 2024

Turns out we'll have to wait for new OTP release to fix it. When I run this with OTP patch I submitted, the added testcase passes.

P.S: How should we this in lower OTP versions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Maybe/else pattern erroneously triggering 'bound variable in pattern' error
1 participant