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

custom defn isn't analyzed properly #1959

Closed
borkdude opened this issue Jan 19, 2023 · 0 comments
Closed

custom defn isn't analyzed properly #1959

borkdude opened this issue Jan 19, 2023 · 0 comments
Assignees
Labels
Projects

Comments

@borkdude
Copy link
Member

borkdude commented Jan 19, 2023

(ns foo
  (:refer-clojure :exclude [defn])
  (:require [clojure.core :as core]))

(core/defmacro defn [name & body]
  `(core/defn ~name ~@body))

(defn foo [])

The :var-definition of foo/defn has namespace clojure.core which is wrong, it should be foo

I found this while solving a custom defn problem for metabase

@borkdude borkdude added this to Needs triage in clj-kondo via automation Jan 19, 2023
@borkdude borkdude moved this from Needs triage to High priority (next release) in clj-kondo Jan 19, 2023
@borkdude borkdude self-assigned this Jan 19, 2023
clj-kondo automation moved this from High priority (next release) to Done Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
clj-kondo
  
Done
Development

No branches or pull requests

1 participant