Fork me on GitHub
#core-typed
<
2015-09-24
>
andrewboltachev07:09:51

Hi. How can I ignore vars created via (clojure.test/deftest ...)? I know there's (ann ^:no-check ...) way, but it would ask me to specify arguments anyway

andrewboltachev07:09:44

UPD: found that t/tc-ignore might do it

andrewboltachev17:09:51

Hi. How do I annotate (defn myfn [a b & [c]] ...)? I always get "no matching arities"

andrewboltachev17:09:05

UPD: solved it like (t/ann myfn [t/Num t/Num & :optional {:c t/Num} -> t/Num])

andrewboltachev17:09:54

UPD: not solved actually. there's another error

andrewboltachev17:09:57

Type Error (mypdf/grammar_checker.clj:72:25) Polymorphic static method clojure.lang.RT/nth could not be applied to arguments: