...error: overload resolution ambiguity:
[javac] @InlineOnly public inline fun Double.isInfinite(): Boolean defined in kotlin
[javac] @InlineOnly public inline fun Double.isInfinite(): Boolean defined in kotlin
when I build from ant, but my classpath looks OK. Is there any way I can get
kotlinc
to tell me where its getting these two functions from?
groostav
10/08/2019, 7:48 PM
of course intelliJ runs and compiles just fine XD
k
karelpeeters
10/08/2019, 7:55 PM
Does ant have a dependency tree command?
g
groostav
10/08/2019, 8:20 PM
Our libs are stored as a flat list of jars in git-lfs.
Ant was upgraded to support ivy, which is a maven crawler, so we should be using that.
groostav
10/08/2019, 8:20 PM
but the problem was intrinsics, I was using kotlin 1.3.20 with kotlin-std-lib 1.3.50, so one version was offered by the compiler itself the other was offered by the std-lib.
i
ilya.gorbunov
10/08/2019, 10:56 PM
If you're running
kotlinc
from CLI and passing kotlin-stdlib on classpath, use also
-no-stdlib
switch to avoid adding the bundled stdlib to classpath.