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
maybe
Describe the bug Compilation fails with an "argument mismatch error" when using a maybe block in a macro call.
To Reproduce
-feature(maybe_expr, enable). %% The particular macro definition is not important -define(LOG(Tag, Code), begin logger:info("~s", [Tag]), Code end). more_work() -> ok. some_work() -> ok. %% Fails with %% argument mismatch for macro 'LOG' work() -> ?LOG("work", begin maybe ok ?= some_work() %% The ?= match doesn't matter end, more_work() end).
Expected behavior Successful compilation
Affected versions OTP-25.3.2.8, OTP-26.2.3, OTP-27.0-rc1
The text was updated successfully, but these errors were encountered:
Thanks! The linked pull requests resolves the issue.
Sorry, something went wrong.
d988c31
Merge branch 'bjorn/stdlib/maybe-macro/GH-8268/OTP-19031' into maint
d67fdab
* bjorn/stdlib/maybe-macro/GH-8268/OTP-19031: epp: Fix use of `maybe` in macro argument
Merge branch 'bjorn/stdlib/maybe-macro/GH-8268/OTP-19031' into maint-26
0a618fc
* bjorn/stdlib/maybe-macro/GH-8268/OTP-19031: epp: Fix use of `maybe` in macro argument # Conflicts: # lib/stdlib/test/epp_SUITE.erl
Merge branch 'bjorn/stdlib/maybe-macro/GH-8268/OTP-19031' into maint-25
54d9d23
bjorng
Successfully merging a pull request may close this issue.
Describe the bug
Compilation fails with an "argument mismatch error" when using a
maybe
block in a macro call.To Reproduce
Expected behavior
Successful compilation
Affected versions
OTP-25.3.2.8, OTP-26.2.3, OTP-27.0-rc1
The text was updated successfully, but these errors were encountered: