rnett
09/20/2020, 3:14 AMjava.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.Roman Artemev [JB]
09/20/2020, 9:00 AMshikasd
09/20/2020, 1:38 PMRoman Artemev [JB]
09/20/2020, 2:16 PMrnett
09/20/2020, 8:03 PMbnorm
09/21/2020, 8:18 PMfunctionSymbol.owner.valueParameters[0]!!.type
) instead of building the IrType properly.rnett
09/21/2020, 8:19 PMto
in irCall
, it worksRoman Artemev [JB]
09/22/2020, 8:47 AMfun <T> foo(): T
the actual return type is different from declaration’s one.
So I think the solution here could be a bit friendly diagnostic.rnett
09/22/2020, 5:39 PMRoman Artemev [JB]
09/22/2020, 6:31 PM