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
$ clj-kondo --lint - <<< '(+ (byte 32) 1)' <stdin>:1:4: error: Expected: number, received: byte. linting took 70ms, errors: 1, warnings: 0
Workaround:
$ clj-kondo --lint - --config '{:linters {:type-mismatch {:namespaces {clojure.core {byte {:arities {1 {:ret #{:byte :number}}}}}}}}}' <<< '(+ (byte 32) 1)' linting took 18ms, errors: 0, warnings: 0
The text was updated successfully, but these errors were encountered:
[#819] byte returns number
a4b10a5
[#819] byte returns number (#820)
c5b8b78
No branches or pull requests
Workaround:
The text was updated successfully, but these errors were encountered: