When I bump Poko to 2.2.20-RC2 and try to use it w...
# compiler
d
When I bump Poko to 2.2.20-RC2 and try to use it with a project building with 2.2.0, JS compilation fails because it appears to find multiple functions named
js.toLong
. (Stacktrace etc. in thread.) I haven’t seen an error like this before; is this an expected incompatibility?
Relevant part of the stacktrace:
Copy code
e: java.lang.IllegalArgumentException: List has more than one element.
	at kotlin.collections.CollectionsKt___CollectionsKt.single(_Collections.kt:618)
	at kotlin.collections.CollectionsKt___CollectionsKt.single(_Collections.kt:598)
	at org.jetbrains.kotlin.ir.backend.js.JsIntrinsics.getInternalFunction(JsIntrinsics.kt:406)
	at org.jetbrains.kotlin.ir.backend.js.JsIntrinsics.<init>(JsIntrinsics.kt:115)
And here’s the line that points to
toLong
being the problem
d
On versions mismatch every incompatibility is expected.
d
Is there any way to work around this one?
d
March versions. It's the best I can suggest.
👍 1