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

variable '__Levelfoo_app13' unsafe in 'case' #559

Open
rlipscombe opened this issue Jun 11, 2021 · 0 comments
Open

variable '__Levelfoo_app13' unsafe in 'case' #559

rlipscombe opened this issue Jun 11, 2021 · 0 comments

Comments

@rlipscombe
Copy link
Contributor

To reproduce, put two lager statements on the same line.

src/foo_app.erl:13:26: variable '__Levelfoo_app13' unsafe in 'case' (line 13, column 5)
src/foo_app.erl:13:26: variable '__Pidfooapp13' unsafe in 'case' (line 13, column 5)
src/foo_app.erl:13:26: variable '__Tracesfoo_app13' unsafe in 'case' (line 13, column 5)

The exact variable name is generated from the module name, so you'll get a slightly different compilation error. The cause is presumably that the line number is in the generated name as well, and there's a collision.

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

No branches or pull requests

1 participant