マルチメソッドとその実装を別のファイルで定義しようとしています。次のようになります: ファイル 1 内
(ns thing.a.b)
(defn dispatch-fn [x] x)
(defmulti foo dispatch-fn)
ファイル 2 で
(ns thing.a.b.c
(:require [thing.a.b :refer [foo]])
(defmethod foo "hello" [s] s)
(defmethod foo "goodbye" [s] "TATA")
そして、メソッドを呼び出すときにメインファイルで次のように定義します。
(ns thing.a.e
(:require thing.a.b :as test))
.
.
.
(test/foo "hello")
これを行うと、例外が発生します"No method in multimethod 'foo'for dispatch value: hello
私は何を間違っていますか?それとも、別のファイルでマルチメソッドの実装を定義することはできませんか?