Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revert "Make sure the clojure.core/bases function always returns a seq."

This reverts commit 73f94cb.
  • Loading branch information...
commit cc223bb69337215f1604f6a68e8966be524ae83a 1 parent 5eb0617
@stuarthalloway stuarthalloway authored
View
2  src/clj/clojure/core.clj
@@ -4918,7 +4918,7 @@
(let [i (.getInterfaces c)
s (.getSuperclass c)]
(not-empty
- (if s (cons s i) (seq i))))))
+ (if s (cons s i) i)))))
(defn supers
"Returns the immediate and indirect superclasses and interfaces of c, if any"
View
4 test/clojure/test_clojure/java_interop.clj
@@ -154,9 +154,7 @@
(bases java.lang.Math)
(list java.lang.Object)
(bases java.lang.Integer)
- (list java.lang.Number java.lang.Comparable)
- (bases java.util.List)
- (list java.util.Collection) ))
+ (list java.lang.Number java.lang.Comparable) ))
(deftest test-supers
(are [x y] (= x y)
Please sign in to comment.
Something went wrong with that request. Please try again.