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
False positive with destructuring depending on previous arg #782
Projects
Comments
borkdude
changed the title
False positive with destructuring
False positive with :or destructuring with default depending on previous arg
Mar 2, 2020
borkdude
changed the title
False positive with :or destructuring with default depending on previous arg
False positive with destructuring depending on previous arg
Mar 6, 2020
Dump from another example on Slack:
|
This was referenced Jun 17, 2020
puredanger wrote:
|
This was referenced Sep 14, 2020
borkdude
added a commit
that referenced
this issue
Apr 18, 2021
See #916: this behavior is supported. There are only some circumstances where this is not supported, e.g. when relying on the order in maps. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
version
clj-kondo v2020.02.28
platform
Native on macOS:
Darwin blaster.local 19.2.0 Darwin Kernel Version 19.2.0: Sat Nov 9 03:47:04 PST 2019; root:xnu-6153.61.1~20/RELEASE_X86_64 x86_64
editor
Calva
problem
repro
echo '(fn unresolved-symbol-x [x & {:keys [y] :or {y (inc x)}}] (+ y x))' | clj-kondo --lint -
expected behavior
This code is valid as far as I understand, so no warnings.
The text was updated successfully, but these errors were encountered: