Nightlight icon indicating copy to clipboard operation
Nightlight copied to clipboard

InstaREPL doesn't respect :refer-clojure :exclude libraries

Open cakenggt opened this issue 7 years ago • 0 comments

The InstaREPL does not correctly exclude core libraries when they are excluded in the ns tag with :refer-clojure :exclude

Steps to reproduce:

  1. Execute lien new app exclude-test
  2. Go into src/exclude_test/core.clj and turn InstaREPL on
  3. Change the contents of the file to the following
(ns exclude-test.core
  (:refer-clojure :exclude [println])
  (:gen-class))

println

(defn -main
  "I don't do a whole lot ... yet."
  [& args]
  (println "Hello, World!"))
  1. See that the println line references clojure.core instead of nothing

cakenggt avatar Jun 29 '17 18:06 cakenggt