DEPRECATED SYNTAX for Fn

14 views
Skip to first unread message

webber

unread,
May 23, 2016, 2:16:17 PM5/23/16
to core.typed
There is a deprecated notice for Fn.

(t/ann my-func (Fn [Number -> Number]))
DEPRECATED SYNTAX (/.../typed-example/src/typed_example/core.clj:56:0): Fn syntax is deprecated, use clojure.core.typed/IFn

How should I do it without a warning.

Thanks!


Ambrose Bonnaire-Sergeant

unread,
May 23, 2016, 3:07:22 PM5/23/16
to core. typed

Try using t/IFn instead of Fn.

Reply all
Reply to author
Forward
0 new messages