Hi :slightly_smiling_face: Is there an workaround ...
# compiler
b
Hi 🙂 Is there an workaround for https://youtrack.jetbrains.com/issue/KT-42073 (I also asked here: https://discuss.kotlinlang.org/t/ir-compiler-throws-illegalstateexception-not-found-idx-for-public/22305) I feel quite lost, that nobody can help.
r
Set the return types explicitly? It only happens when you try to use the
irCall
builder that infers it with types it can't infer (i.e. type parameters). Alternatively use that method, and substitute the type params in once they are set.
b
It seems to be caused by the classes that should be serialized via
@Contextual
. Here is a minimal example from my code base: https://gitlab.com/benkuly/trixnity/-/blob/ir-compiler-issues/trixnity-core/src/co[…]in/kotlin/net/folivo/trixnity/core/model/events/UnsignedData.kt