I suspect that the new type inference is making a mistake in a lot of the cljc-time functions. See ๐งต for details.
For instance, this call:
(cljc.java-time.local-date/minus-days ld 1)
Produces this error:
error: Expected: long, received: positive integer
Even though my REPL seems to think that 1 is a longI'm seeing this error from many cljc-time functions that take a long (typically plus/minus functions)
Thanks, can you make a GitHub issue? Currently traveling but will look at this ASAP. Make sure you're using the newest clj-kondo
As a workaround you can disable the type checker meanwhile
Just wanted to make sure I wasn't mistaken first ๐ Will verify that I have the latest version
Sorry... I thought I was on latest, but I wasn't. Latest does not have this problem ๐
Nothing to see here!
Yeah no problem, I remember fixing something like this but wasn't sure