Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

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?

@MarkoMin
Copy link
Contributor Author

MarkoMin commented Jan 9, 2025

PR got merged in OTP so I will test this one the new release is out. This should work for OTP > 27.2. I have no idea if we can fix this for earlier versions of OTP

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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