I attempted to do:
(defprotocol TestP
(fun [this ^int i]))
(deftype Test [] TestP
(fun [this ^int i] i))
However, compilation fails and says Can't find matching method: fun. Does that mean deftype functions may not accept type hints on parameters?
You don’t need to specify the type hint in
deftypeas the error message clearly states: