Skip to content

Commit

Permalink
Improve detection of gen-interface forms
Browse files Browse the repository at this point in the history
  • Loading branch information
jafingerhut committed Jan 15, 2014
1 parent 91e14ac commit fa61e5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/eastwood/analyze_ns.clj
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@

(defn gen-interface-form? [form]
(and (sequential? form)
(= 'clojure.core/gen-interface (first form))))
(contains? #{'gen-interface 'clojure.core/gen-interface}
(first form))))

;; Avoid macroexpand'ing a gen-interface form more than once, since it
;; causes an exception to be thrown.
Expand Down

0 comments on commit fa61e5f

Please sign in to comment.