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

extra error on recur with cond-> #1545

Closed
ikitommi opened this issue Jan 15, 2022 · 0 comments
Closed

extra error on recur with cond-> #1545

ikitommi opened this issue Jan 15, 2022 · 0 comments
Projects

Comments

@ikitommi
Copy link

version

v2022.01.13

platform

JVM

problem

extra error on recur with cond->

repro

~ echo '(loop [x 10] (cond-> (dec x) (pos? x) (recur)))' | clj
Clojure 1.10.3
user=> -1
user=>~ echo '(loop [x 10] (cond-> (dec x) (pos? x) (recur)))' | clj-kondo --lint -
<stdin>:1:39: error: Recur can only be used in tail position.
linting took 9ms, errors: 1, warnings: 0

expected behavior

No error

@borkdude borkdude added this to Needs triage in clj-kondo via automation Jan 15, 2022
@borkdude borkdude moved this from Needs triage to High priority (next release) in clj-kondo Jan 15, 2022
clj-kondo automation moved this from High priority (next release) to Done Jan 15, 2022
borkdude added a commit that referenced this issue Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
clj-kondo
  
Done
Development

No branches or pull requests

1 participant