Fork me on GitHub
#core-typed
<
2017-07-05
>
mrchance12:07:09

Hi! I am very new to core.typed, and I am wondering if it can infer fn-types and what it needs to do that. I tried a simple example

(t/cf (let [x 5
            foo (fn foo [y] (+ x y))]
        foo))
but it doesn't work 😞

mrchance12:07:21

oh yes, wiki says > All function parameters must be annotated, or default to Any.

mrchance12:07:00

Hm, I would've expected this to be possible