-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Destructuring regression for defmethod #292
Comments
Do you have an idea since which version this started happening?
On Fri, 23 Dec 2022 at 03:23, Gabriel Horner ***@***.***> wrote:
Hi @borkdude <https://github.com/borkdude>. Encountered this bug while upgrading
nbb-features
<babashka/nbb-features@d6b6249>.
It is easy to work around this destructuring bug but thought you should know
------------------------------
*version*
1.1.155
*platform*
osx 12.0.1 and node 16.13.1
*problem*
When destructuring inside of a defmethod argument, the destructuring
bindings are not recognized
*repro*
nbb-logseq -e "(require '[cljs.test :as t]) (defmethod t/report [::t/default :end-run-tests] [{:keys [error fail]}] (prn :ERR error))"
---- Error --------------------------------------
Message: Could not resolve symbol: error
Location: 1:102
Phase: analysis
...
*expected behavior*
I expected the above to evaluate without error. This evaluates fine with
0.7.135
—
Reply to this email directly, view it on GitHub
<#292>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACFSBVT5UDB3CA7NC6O57TWOUEKFANCNFSM6AAAAAATHJXDGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Yeah, this indeed looks weird:
|
borkdude
added a commit
that referenced
this issue
Dec 23, 2022
That was quick. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @borkdude. Encountered this bug while upgrading nbb-features. It is easy to work around this destructuring bug but thought you should know
version
1.1.155
platform
osx 12.0.1 and node 16.13.1
problem
When destructuring inside of a defmethod argument, the destructuring bindings are not recognized
repro
nbb-logseq -e "(require '[cljs.test :as t]) (defmethod t/report [::t/default :end-run-tests] [{:keys [error fail]}] (prn :ERR error))" ---- Error -------------------------------------- Message: Could not resolve symbol: error Location: 1:102 Phase: analysis ...
expected behavior
I expected the above to evaluate without error. This evaluates fine with 0.7.135
The text was updated successfully, but these errors were encountered: