Hi all, I am trying to implement custom assertions in ClojureScript. I tried to use defmethod but got the following error:
> clojure -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version > "1.10.520"}}}' -m cljs.main --repl --repl-env node > cljs.user=> (require '[cljs.test]) > nil > cljs.user=> (defmethod cljs.test/assert-expr 'foo [& arg]) > WARNING: Use of undeclared Var cljs.test/assert-expr at line 1 <cljs repl> > Execution error (Error) at (<cljs repl>:1). > No protocol method IMultiFn.-add-method defined for type undefined: > > cljs.user=> cljs.test/assert-expr > WARNING: Use of undeclared Var cljs.test/assert-expr at line 1 <cljs repl> > nil What am I doing wrong? Thanks, JS -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/875zlezvwv.fsf%40gmail.com.