Permalink
Browse files

Add type hint to toArray

  • Loading branch information...
tirkarthi committed Jul 10, 2018
1 parent 6dfd27b commit 63dab8e6cb702a6b0c5b279721bee7eff0aba44f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/clj/clojure/gvec.clj
View
@@ -397,7 +397,7 @@
(containsAll [this c] (every? #(.contains this %) c))
(isEmpty [_] (zero? cnt))
(toArray [this] (into-array Object this))
(toArray [this arr]
(^"[Ljava.lang.Object;" toArray [this ^"[Ljava.lang.Object;" arr]
(if (>= (count arr) cnt)
(do
(dotimes [i cnt]

0 comments on commit 63dab8e

Please sign in to comment.