Fork me on GitHub
#clj-kondo
<
2021-07-17
>
pez16:07:19

Is there a rationale behind that this gives a redefined var warning?

(comment
  (def foo :foo))

(def foo :bar) ; <- redefined var

borkdude16:07:47

you're probably missing one closing paren of the comment here, right?

pez16:07:25

Yeah, here, but not there. 😃 (Fixed the typo)

borkdude17:07:49

@pez If you turn those around, you will not get the redefined warning (since that linter is shut off in the comment section)

borkdude17:07:17

the above example could be improved of course

borkdude17:07:44

feel free to post an issue

pez17:07:06

I usually have things like these the other way around. But in this file it made sense with this order. I just might file that issue. 😎