Skip to content

Commit b178857

Browse files
committed
wip
1 parent 89a0516 commit b178857

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/nextjournal/clerk/analyzer/impl.clj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,9 @@
9393

9494
(defmulti macroexpand-hook (fn [the-var _&form _&env _args] (var-sym the-var)))
9595

96-
(defmethod macroexpand-hook 'clojure.core/gen-interface [_ _ _ _]
97-
nil)
96+
(defmethod macroexpand-hook 'clojure.core/deftype [_ &form &env [name class-name args interfaces]]
97+
(when-not (resolve class-name)
98+
(apply #'clojure.core/deftype &form &env name class-name args interfaces)))
9899

99100
(defmethod macroexpand-hook :default [the-var &form &env args]
100101
(if (cljs? &env)

0 commit comments

Comments
 (0)