Different problem now: everything compiles fine on JVM, but when I try to use it on JS, I get
java.lang.IllegalStateException: Not found Idx for public kotlin.collections/mapOf|5848051883920634516[0]
from the IrLinker. I'm referencing and using
mapOf(vararg Pair<>)
which works fine on JVM. The
compileKotlinJs
task works fine, it's the
compileProductionExecutableKotlinJs
task that fails.
It's happening on other methods to. Seems to be just top level functions. Is this a known bug?
Poking around in debug in
KotlinIrLinker.IrDeserializerForFile
, while the referenced function (in this case,
to
) isn't in
reversedSignitureIndex
, it is in
fileLocalDeserializationState.reachableTopLevels
, so it is obviously being found somehow.