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

false positive type error for associative used as ifn #479

Closed
borkdude opened this issue Sep 30, 2019 · 2 comments
Closed

false positive type error for associative used as ifn #479

borkdude opened this issue Sep 30, 2019 · 2 comments
Milestone

Comments

@borkdude
Copy link
Member

borkdude commented Sep 30, 2019

$ clj-kondo --lint - <<< '(remove (assoc {} :a 1) [:a])'
<stdin>:1:9: error: Expected: function, received: associative collection.
@borkdude borkdude added this to the release 26 milestone Sep 30, 2019
@borkdude borkdude changed the title false positive type error false positive type error for associative used as ifn Sep 30, 2019
@borkdude borkdude closed this as completed Oct 4, 2019
@p-himik
Copy link

p-himik commented Oct 27, 2019

I still see this false positive on sets with clj-kondo 2019.10.26:

$ clj-kondo --lint - <<< '(filter (conj #{} 1) [1])'
<stdin>:1:9: error: Expected: function, received: collection.

@borkdude
Copy link
Member Author

@p-himik Thanks for reporting, I made a new issue for it:

#554

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

2 participants