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

Wrong arity of function detected when using hash sign with type hint #47

Closed
borkdude opened this issue Apr 4, 2019 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@borkdude
Copy link
Member

borkdude commented Apr 4, 2019

Repro:

$ rlwrap clj-kondo --lint -
(defn get-bytes ^bytes [part] part)
(get-bytes :thing)
$ rlwrap clj-kondo --lint -
(defn get-bytes #^bytes [part] part)
(get-bytes :thing)
^D<stdin>:2:1: error: Wrong number of args (1) passed to user/get-bytes

Found when linting yada:
https://github.com/juxt/yada/blob/c69c003794d1f07336741dcd80aa7b8fa8ca5cdb/ext/multipart/src/yada/multipart.clj#L37

@borkdude borkdude added bug Something isn't working next-release labels Apr 5, 2019
borkdude added a commit that referenced this issue Apr 7, 2019
borkdude added a commit that referenced this issue Apr 7, 2019
borkdude added a commit that referenced this issue Apr 7, 2019
@borkdude
Copy link
Member Author

borkdude commented Apr 7, 2019

Fixed with 5987b5a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant