尝试使用另一种类型中的一种似乎不起作用:
(deftype Foo [^int a ^int b])
(definterface Bars (^Foo makefoo []))
(deftype Bar [^int a ^int b] Bars (^Foo makefoo [this] (Foo. 1 2)))
;java.lang.NoClassDefFoundError: java/lang/Foo.
如何让 Foo 对 Bar 可见?
尝试使用另一种类型中的一种似乎不起作用:
(deftype Foo [^int a ^int b])
(definterface Bars (^Foo makefoo []))
(deftype Bar [^int a ^int b] Bars (^Foo makefoo [this] (Foo. 1 2)))
;java.lang.NoClassDefFoundError: java/lang/Foo.
如何让 Foo 对 Bar 可见?