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

Using --replace removes the namespace qualifier :: #240

Open
manuel-sugawara opened this issue Oct 7, 2020 · 0 comments
Open

Using --replace removes the namespace qualifier :: #240

manuel-sugawara opened this issue Oct 7, 2020 · 0 comments
Labels

Comments

@manuel-sugawara
Copy link

Source before:

(ns test_kibit.core
  (:require [test_kibit.data :as tkb]))

(def test-value {::tkb/foo 1 ::tkb/bar 2})

(def size
  (-> (doto
          (java.util.ArrayList.)
        (.add (::tkb/foo test-value))
        (.add (::tkb/bar test-value)))
      .size))

After lein kibit --replace

(ns test_kibit.core
  (:require [test_kibit.data :as tkb]))

(def test-value {::tkb/foo 1 ::tkb/bar 2})

(def size
  (.size (doto (java.util.ArrayList.) (.add (:tkb/foo test-value)) (.add (:tkb/bar test-value)))))

Note that ::tkb/foo and ::tkb/bar got replace by :tkb/foo and :tkb/bar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants