We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89a0516 commit b178857Copy full SHA for b178857
src/nextjournal/clerk/analyzer/impl.clj
@@ -93,8 +93,9 @@
93
94
(defmulti macroexpand-hook (fn [the-var _&form _&env _args] (var-sym the-var)))
95
96
-(defmethod macroexpand-hook 'clojure.core/gen-interface [_ _ _ _]
97
- nil)
+(defmethod macroexpand-hook 'clojure.core/deftype [_ &form &env [name class-name args interfaces]]
+ (when-not (resolve class-name)
98
+ (apply #'clojure.core/deftype &form &env name class-name args interfaces)))
99
100
(defmethod macroexpand-hook :default [the-var &form &env args]
101
(if (cljs? &env)
0 commit comments